Adsar Logo

Digital Ocean Daily Snapshots

Digital Ocean offer backups but they only run once a week.
If you, like many, require daily backups, then do_snapshot is your answer.

Install the software:

gpg2 --keyserver hkp:// --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -L | bash -s stable
source /etc/profile.d/
rvm install 2.6.4
gem install net-imap -v 0.3.7
gem install do_snapshot

Then you can set up a cronjob - an example is below to keep three days worth of snapshots:

33 3 * * * /root/ > /dev/null 2>&1

source /usr/local/rvm/environments/ruby-2.6.4
cd /root/
do_snapshot snap --clean --keep=3 --digital-ocean-access-token XXX

Trees for life

Want to get in touch?