Open mikulabc opened 3 years ago
Hi,
The script here is about creating a secure baseline snapshot image that can be used as the base for a new server on Hetzner Cloud. Your question is about how to do a snapshot on a regular basis so this repo is not of much help.
To your question, there are a few ways to schedule a snapshot.
The easiest is to enable backups on your server on the Hetzner control panel. It costs 20% of the service plan per month. You can see more about how that works at https://docs.hetzner.com/cloud/general/faq.
If you want more control than offered by the in-built backup, you would need to either write a script to do it using the hcloud cli (https://github.com/hetznercloud/cli) or subscribe to a commercial service (something like https://weap.io/providers/hetzner-backups should work). I haven't done either one although you have given me a good idea for a future tutorial since the current options don't meet your requirement to have a simple, scheduled snapshot.
Hi @rericsson
I just came across your script here, I hate all other external backup services, all very complicated and time-consuming, the snapshots is a goldmine people should be using more often to do backups :)
Your script seems very cool and promising, but I am a basic user who has no idea where to start to use this, I would love to create snapshots of my hetzner cloud each week 2 copies and retain 4, how would i set this to run Tuesdays and Thursdays at 3pm?
You guys are all professionals, but think of me as that user that is between Noob and Pro, that simply needs some help with a step-by-step instruction, if you can update the description to include a walkthrough for amateurs like me i would be amazing, I am also thinking of all the other users landing here from Google that were looking for automatic snapshots with hetzner cloud
I would be 1000x grateful :) if you can provide some "how to use" sample explanation for Amateurs
I am using hetzner cloud CX11, i can run commands as root as long as its not too complex.
Have a happy new year!