Skip to content

docs: document the verified volume backup and restore procedure - #36

Merged
gnacho merged 1 commit into
mainfrom
docs/22-volume-backup-restore
Oct 18, 2026
Merged

gnacho merged 1 commit into
mainfrom
docs/22-volume-backup-restore

Conversation

@gnacho

@gnacho gnacho commented Oct 18, 2026

Copy link
Copy Markdown
Owner

Refs #22 (the issue asks for the volume backup/restore to be documented; the soak and the rollback drill still have to happen, so this does not close it).

New: a proper backup section (what the volume is, cold vs hot copy, with the manifest verification that makes a hot copy trustworthy, and how to keep a copy outside the container) and a restore section.

The restore section is not written from memory: it was exercised on the production container. A backup was taken, extracted into a scratch directory, ownership restored and hashed, and then a second davcloud instance was started on another port over the restored copy to see the data served before touching anything live. The manifest of the restored copy matches the original volume byte for byte.

Two traps are written down because they cost real time: sort collation changes between locales (compare manifests with LC_ALL=C on both sides, otherwise you chase a difference that is not there), and a PROPFIND with an unknown X-Remote-User bootstraps that user's empty collections, which changes the manifest you are comparing.

The one step not exercised yet is replacing the live volume; the doc says so explicitly instead of implying it is tested.

@gnacho
gnacho merged commit d0d2ae4 into main Oct 18, 2026
4 checks passed
@gnacho
gnacho deleted the docs/22-volume-backup-restore branch October 18, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant