News for hackers. Stuff that matters.
Re:I wound up causing a major outage of my services and dest... by taneq on Friday February 18, 2022 @10:14AM (#30386739)
Slight segue but you sound like you know about ZFS (and if not, Cunningham's Law abides :D )

Does a VM on one physical host, backed up via nightly disk image on a geographically separate physical host, with the latter storing the backups on a 2-disk mirrored ZFS pool, count as a reasonable 3-2-1 backup regime? It's not storing mission critical up-to-the-minute user data, 'just' company files, so a one-day rollback would be annoying but acceptable.

Re:I wound up causing a major outage of my services and dest... by hddherman on Friday February 18, 2022 @11:49AM (#30388055)
Disclaimer: I'm a bumbling idiot who does this type of thing as a hobby.

Add nightly or weekly offline backups and you should be good to go. And by offline, I mean physically connecting a storage device, making the backup (preferrably via an automated script), and then disconnecting the device and storing it elsewhere in a safe place.

In your scenario, I understand that the original physical host where you're making a backup of a VM has no redundancy or data integrity guarantees? I'd just like to point out that backups are good, but if all you have are backups of the same corrupted data, then they are pretty much useless.

My approach is to have redundancy and data integrity guarantees (ZFS mirror) at the source and have offline backups on external hard drives. The original data is likely to be OK, and well, if I need to recover from a backup, I'll be happy enough with what I have there anyway.

Re:I wound up causing a major outage of my services and dest... by mst on Friday February 18, 2022 @12:55PM (#30388892)
Caveat that you probably already know but others reading may not: 'zfs send' while absolutely awesome when used for things it's designed for will stream the file system byte for byte so if there's corruption brewing you will absolutely transfer the corruption along with everything else.

(taking a snapshot, mounting the snapshot, and then backing up from -that- via something 'cp -a' like is probably the safest option, IMO, though it's always possible I've missed something here in which case I hope somebody will reply correcting me)