Snapshots for disaster recovery: apcmd snapshot create|list|restore (D015); 0.9.1-rc.1 #24
Loading…
Reference in a new issue
No description provided.
Delete branch "snapshot"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Snapshots for disaster recovery (D015). Version 0.9.1-rc.1.
apcmd snapshot create [--output <dir>]: installation directory (incl..env),pg_dumpof the database, all Docker volumes of the project exceptpgdata, each part age-encrypted in the backup container; plainsnapshot.jsonwith versions, backup image digest, sizes and SHA-256 (no secrets). Instance keeps running.apcmd snapshot listapcmd snapshot restore <file> --identity <key> [--dir] [--replace] [--yes]: checks every checksum and test-decrypts before changing anything; works on a fresh host without an installation;--replaceasks for the instance name, moves the old directory aside, deletes the old volumes.Deviation from the spec (new command, not in SPEC §11): recorded as D015 in
docs/decisions.md(pgdata as dump, images not included, no pruning/rsync of snapshots).Checks:
deno task checkgreen (108 tests; newtests/snapshot_test.ts,tests/tar_test.ts).envidentical; health green--replace, name taken by another instance, wrong key with--replace(running instance untouched)🤖 Generated with Claude Code