r/Backup • u/Afraid_Technician234 • 22d ago
Backup strategy
/r/HomeServer/comments/1xv4h80/backup_strategy/1
u/BorysTheBlazer 19d ago
A backup drive in the same box won't survive PSU failure, or ransomware if it stays mounted. I'd refresh the offsite copy more than 3-4 times a year.
1
u/Afraid_Technician234 19d ago
3 drives are in the same box, one will be in an external enclosure and connected only during a backup procedure. For the offsite backup, the long term plan is to put a nas or pc there and automate the whole thing, but that is for the future, first I must master local backup :)
1
u/BorysTheBlazer 18d ago
For the external drive, zfs send -i from your snapshots keeps each monthly run incremental. Run a scrub on it afterward to confirm the copy is readable.
1
u/UriShay-CyberSnap Vendor 17d ago
The plan covers hardware failure and deletion well, but the thing I'd add is keeping several older versions on the external drive instead of one copy that gets overwritten each month. If something gets onto the box quietly, a monthly backup can copy the bad state, and you'd want an older point to fall back to as the recommended recovery point. Also do a real test restore from that drive now and then, onto a different machine, so you know it actually works before you need it.
(I work at CyberSnap, we build ransomware recovery tooling.)
1
u/Afraid_Technician234 16d ago
Thank you for the advice, i'm setting things up at the moment and will post the end result when i'm shure everithing works as it should. The current plan is to keep 30 daily and 6 monthly snapshots on the backup drives (went zfs for all of them) will have to see how much space it uses.
1
u/Afraid_Technician234 8d ago
Ok, for anyone stumbling on this thread, everything is up and running and is set like this:
Two drives in ZFS Raid1 that act as my NAS.
Snapshots are created with Sanoid daily and monthly (if I ever start working on files directly on the NAS, will add hourly).
Another drive in the same machine where the snapshots are copied to with Syncoid after they are made.
The retention of the snapshots at the moment is set to 7 daily and 2 monthly on the NAS, 30 daily and 6 monthly on the backup drive.
A forth drive in an external enclosure that is connected only during backup and where the snapshot on the backup drive are copied and scrub is performed once a month (another snapshot that is never automaticly pruned is also created on both backup drives so they don't get out of sync even if I'm late to do the backup).
A fifth drive with the snapshots (just the most important ones since is smaller), that is stored at a relatives house in another city and updated irregulary (in the future I may put a pc there to automate the offsite backup).
It's not perfect, but a lot better than it was.