
How to Back Up and Restore Docker Volumes Without Surprises
Back up a Docker volume with a throwaway container and tar, restore it into a fresh volume, handle running databases correctly and verify the archive.
Tag
5 posts

Back up a Docker volume with a throwaway container and tar, restore it into a fresh volume, handle running databases correctly and verify the archive.

Logical versus physical database backups: what each contains, speed, portability, consistency, restore options and which to use for small and large databases.

Run a restore drill for a small database: schedule, steps, a clean machine, timing the recovery, checking data and writing down what to fix.

Verify backups automatically with a scheduled restore test: checksums, a restore into a scratch location, row counts or sample diffs, alerts and the schedule.

Why a backup you never restored is not a backup: the ways backups fail silently, and a short routine to restore, verify and monitor them.