What's the fastest backup and restore method?
3246 last edited by nebulon
TL;DR: I am assuming that using a local disk and no encryption is the fastest but in production that just wouldn't fly for me
39G apps -> 38G backup ~ 45min via rsync with encryption to remote CIFS location; restore 30min
Currently, I am using the following settings (times are estimates, not hard data):
- Server location: Hetzner (Nuremberg)
- Backup location: Hetzner (Falkenstein)
- Backup type: StorageBox (CIFS)
- Backup method: rsync (with encryption)
- Backup set size: Actually I am not sure as there's no quick and easy way to determine that. Looking at the snapshot folder and the latest backup folder the total appears to be around 38GB with the size of my /home/yellowtent directory being 39G.
I was trying to find out from the logs how long the backup ran for but couldn't locate anything useful. So I ended up looking at the bandwidth logs, which look like they suggest that it took 45min. That's because Cloudron doesn't log this and Hetzner's Cloud console only gives a sh*t resolution. My backups run from 22:00.
I have now installed vnstat to monitor it in more detail and wondered what your experiences were.
To restore, to a new VM in the same location, it took around 30min. Again, this lacks some hard data and I'll see if I can rig up a scientifically more useful test if anyone is interested.
Could this work?
One scenario I think might work, is to mount a block storage volume to the box locally, encrypt it using LUKS full disk encryption, back up to that volume without encryption using rsync and restore from it. Then using rclone with crypt to shovel the backups to a remote location separately using cron.
If the box fails, remount the block storage to the new VM (think of it like a USB disk) and restore from it.
How big are your backups, what method do you use and how long does it take?
robi last edited by
@3246 As far as I recall, box logs track time for task duration including backups.
jdaviescoates last edited by jdaviescoates
@3246 said in [ Question ] What's the fastest backup and restore method?:
How big are your backups,
Pretty big, I guess, because I'm currently backing up 237.79 GB of data. Not checked recently how big the backup ends up being
what method do you use
I just use tgz (to a CIFS mounted Hetzer Storage box too) because I like the idea of each backup being a complete backup (and I guess also because most of my backup is Nextcloud which includes loads of small files and rsync takes ages working out what has changed which kinda defeats the purpose of the transfer being quicker because it only backs up those changes. But mostly because I just prefer backups to be standalone complete backups)
and how long does it take?
I'm not actually too sure because I'm asleep when it happens (I only backup daily, not multiple times a day like some people), but I think it takes a good couple of hours.
necrevistonnezr last edited by necrevistonnezr
@3246 Local rsync backup, then restic overnight to a remote host. 300 GB of data takes less than 30 minutes (depending on the changes): https://forum.cloudron.io/topic/6928/tutorial-remote-backup-of-local-cloudron-backup-snapshots-with-restic-rclone/1?_=1673172629890
timconsidine App Dev last edited by
@3246 I use scaleway
Seems to be about 150Gb
Takes about 30 mins
Fails occasionally - not sure why - I just do it again - I'm guessing some network connection issue
@3246 They should add a way to add 2 backup jobs setup however you like:
Job 1 - Backup to Local external disk for fast access in case of emergency
Job 2 - Offsite backup for long-storage.
Both encrypted, and this offers a quick restore (in the event of just needing a quick restore) and one for proper emergencies
Not that you even need to set it up like this, but more backups == better backups even if one is local for emergency "non-natural-disaster" restore.