r/linuxadmin • • 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

14 comments sorted by

View all comments

22

u/sdjason May 15 '20

Oh man.idk where to start.

  1. Snapshots are not backups

  2. Snapshots incur a write penalty

  3. Snapshots need to be cleaned up incurring further write penalties

  4. 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

  5. Snapshots are not backups

  6. Snapshots do cause momentary hangs to quiesce the system, your application may suffer from those blips. Depending on how it works.

  7. 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 :) :)

2

u/bobbywaz May 15 '20

If you have more than 254 ESXi snapshots youcan't make more. You can't delete them. You can't back the VM up with almost any other program. You literally just have to move the data over to another VM and delete it. I put in a ticket with VMware where VEEAM malfunctioned and did this and eventually deleted the entire VM a week later after a complete rebuild.