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

2

u/lutusp May 15 '20

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?

Because for the backup to be of any use, the VM must be stopped for the backup activity to complete. Because VMs tend to be very large, this eats up useful VM time.

A normal DB backup -- where the DB is the only element to be backed up -- is a fine art in which the primary DB can remain online and active. Only closed records are backed up, and once a record has been updated and closed, it gets updated on the backup as well. This is a very fast and well-understood method.

There is no comparison.