Script for automating backup of DigitalOcean "DO" Droplet using snapshot.
- Copy ocean_backup.ini to /etc/.
- Make sure you configure the API token and list of Droplet IDs that need to be backup.
- 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
- Follow this tutorial to create API token.
- You can either use DO command line tool or this alternate method to determine Droplet ID.
- Add email notification.