Skip to content

Comment on Correct Backups Require Filesystem Snapshotsparent

Comments

In many if not most production databases, that write-ahead log will be on a different volume or file system from the database files. This is often recommended in documentation for performance reasons.

So now it is quite possible you back up an older WAL coupled with a newer DB file that has partial writes inside. Boom.

This “multi-volume, multi-writer coordination” is the sort of problem VSS solves on windows. I’m not sure there’s anything equivalent on Linux or MacOS that can do multi-volume snapshots consistently.

In that case you just back up the database first and the WAL second.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.