How do I automate snapshots on a weekly basis?
I was trying to explore the API and such and see what I can do to automate my snapshots, but I’m still a bit lost. For one, I cannot use the API to safely shutdown my droplet (have a support issue open but seems like they consider it “best effort”) and I don’t want to risk a power_off due to this being a production server and writing to a database frequently.
I’m open to scripts, other solutions, advice, etc.
Ultimately, I would like to implement the following as a close example:
1) Shutdown my droplet at 2 AM every Saturday night
2) Take a snapshot of the droplet above which would restart the server once its complete
3) Automate maintenance of those snapshots such as removing the oldest snapshot while only keeping 2 active snapshots, for example.
Does a solution like this exist so that I can automate my snapshots and maintain the images too? At the very least hoping to automate the snapshots and I can manually maintain the images.
Your help would be greatly appreciated, thank you in advance!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×