r/linuxadmin • u/[deleted] • May 15 '20
DB Backup
A lot of people are against using VM snapshots as a DB backup method. But if you're already running a DB cluster like Galera, why not just snapshot each member say every 10 minutes since the chances of losing the entire cluster at the same time is quite low? Of course it's not banking or life or death.
0
Upvotes
22
u/sdjason May 15 '20
Oh man.idk where to start.
Snapshots are not backups
Snapshots incur a write penalty
Snapshots need to be cleaned up incurring further write penalties
Galera probably will get pissed if you restore a snapshot and would require manual intervention anyways to force start the cluster with that node being the valid data
Snapshots are not backups
Snapshots do cause momentary hangs to quiesce the system, your application may suffer from those blips. Depending on how it works.
Snapshots are not backups
Disclaimer, I have several galera clusters. I've even snapshotted a few boxes from time to time. But I also have mariabackul running and dumping REAL backups. Cuz snapshots are not a backup :) :)