Jump to content

Snapshot automation for droplets and volumes in DigitalOcean Cloud platform

From TetraWiki
Revision as of 17:08, 23 May 2019 by Biswajit (talk | contribs) (Created page with " == digtalocean Automate Snapshot for Droplet and Volumes == Reference '''https://pypi.org/project/goutte/''' Issue - For Python 3.7 on Centos 6 Reference - https://be...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


== digtalocean Automate Snapshot for Droplet and Volumes

==

Reference https://pypi.org/project/goutte/

Issue - For Python 3.7 on Centos 6

Reference - https://benad.me/blog/2018/07/17/python-3.7-on-centos-6/


Genrate Api KEY for digital Ocean via

https://www.easydeploy.cloud/blog/automate-droplet-snapshot-digitalocean/?unapproved=39&moderation-hash=6864fe13b1a4810007aa7067bbdca7db#comment-39

only first 2 Step to be followed

Finally on Live Server For example , at mail.blsinternational.net

goutte /usr/local/etc/goutte.toml 36c095a48c01428e14b1a38c3ddce5cb57d65df42cb1d727e59a22735b1a6236 --only snapshot

And file /usr/local/etc/goutte.toml

retention = 2     # Number of backups to keep per droplet/volume
[droplets]
names = [          # Array of droplets you want to snapshot
 'mail.blsinternational.net',
]
[volumes]
names = [          # Array of volumes you want to snapshot
 'bls-zimbra-store-01',
]

And Crontab Entry is

0 17 * * * goutte /usr/local/etc/goutte.toml 36c095a48c01428e14b1a38c3ddce5cb57d65df42cb1d727e59a22735b1a6236 --only snapshot > /dev/null