Skip to contentSkip to conversation

Safe fsck / consistent backup while mounted

DISCUSSION Tomasz Chmielewski 1 participant 1 message Jun 4, 2011 Btrfs file system

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines

Now I thought about a way to safely backup a MySQL or other database - without long service interruption:

- Tell DB to turn itself into consistent state and freeze there
- sync / btrfs filesystem sync ; fsfreeze -f /mountpoint
- btrfs subvolume snapshot
- fsfreeze -u /mountpoint

Hmm, I don't think fsfreeze works properly with btrfs?

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org