Skip to content

Automate backup of DigitalOcean droplet using snapshot.

License

Notifications You must be signed in to change notification settings

Innoractive/ocean-backup

Repository files navigation

Ocean Backup

Script for automating backup of DigitalOcean "DO" Droplet using snapshot.

Instruction

  1. Copy ocean_backup.ini to /etc/.
  2. Make sure you configure the API token and list of Droplet IDs that need to be backup.
  3. Setup a cron job to execute index.php.

Example cron configuration

0 0 * * * php /path/to/ocean-backup/index.php >> /tmp/ocean-backup.log 2>&1

Notes

TODO

  • Add email notification.