bur-cli
BUR-9Restore into a throwaway container (bur restore --drill)
Description
bur restore APP --drill: the first real restore path, and the automated restorability check (which is not a correctness check).
- Pull the latest local backup, decrypt it, spin up a throwaway
postgres:<major>of the matching major, apply globals,pg_restorethe dump, assert restorability, then tear down (always, even on failure). - Restorability means: the full decrypt succeeds, the full
pg_restoreexits 0, the--single-transactioncommits, and the expected tables exist with non-zero rows. It does not claim a byte-for-byte match against the live DB, which legitimately differs by the time the drill runs. - Spin the throwaway container with a non-
postgressuperuser name, so a missing-globals regression fails the drill instead of being masked.
Acceptance
-
bur restore giftring --drillrestores globals then the dump into a fresh container and commits. - it asserts the expected tables exist with non-zero rows, and always removes the throwaway container.
- an integration test (
tests/integration/test_roundtrip.py) runs the full backup and restore round-trip.
Sub-tickets
0No sub-tickets yet.
Links
No links.
Comments
0No comments yet.