top | item 44623338

(no title)

mekster | 7 months ago

For regular DB like MySQL/PostgreSQL, just snapshot on zfs without thinking.

discuss

order

binwiederhier|7 months ago

Databases these days are pretty resilient to restoring from crash consistent backups like that, so yes, you'll likely be fine. It's a good enough approach for many cases. But you can't be sure that it really recovers.

However, ZFS snapshots alone are not a good enough backup if you don't off-site them somewhere else. A server/backplane/storage controller could die or corrupt your entire zpool, or the place could burn down. Lots of ways to fail. You gotta at least zfs send the snapshots somewhere.