Testing a restic restore from Garage object storage
Rehearse a restic file restore from Garage on a clean client, proving key custody, private endpoint access and file integrity without production writes.
Editable file restore checklist with worked cases and space for observations.
Last updated
In short
- Recover repository access and decryption separately.
- Select the snapshot by host, path and date.
- Verify restored contents through an ordinary user account.
Architectures · See also Garage
Begin without the original backup machine
Assume the client that created the backups is unavailable. Give a second operator an isolated host, the recovery instructions and access to the approved credential custodians. They should be able to identify the Garage endpoint, bucket, repository prefix, certificate trust chain and compatible restic release without copying configuration from the missing client. Include the network path and resolver used by the recovery host.
Distinguish the credential authorizing object-store requests from the password that unlocks the restic repository. Neither one replaces the other. Retrieve each through its authorized process and keep secret values out of the evidence sheet. Check what repository operations the specific restic workflow requires, including lock handling. Run this exercise on a dedicated recovery copy with no write access to the production repository. Confirm any repository locks appear only on that copy. restic restore documentation
| Recovery checkpoint | Harmless exercise | Passing observation |
|---|---|---|
| Endpoint and trust | Resolve the configured hostname and open the private endpoint from the isolated client with certificate validation enabled. | The recovery operator can identify the correct bucket and repository prefix. A neighboring test prefix cannot be mistaken for the required backup. |
| Snapshot identity | List snapshots through restic and choose the expected source host, path and date. Record the snapshot ID. | A known fixture introduced before the chosen snapshot appears in its listing. A later revision has a distinguishable marker and remains outside this restore. |
| Restore destination | Select an empty scratch directory with adequate capacity and restore the fixture subtree there. | Files appear under the expected relative paths. Nothing overlaps the production application’s data directory or a shared write volume. |
| Contents and permissions | Compare a previously recorded digest manifest for binary and text files, then open them as the intended reader. | Byte counts and digests agree. The authorized reader can open the records and a restricted account still lacks access where required. |
Diagnose the first failing boundary
A successful object listing only proves that one S3 operation worked with the supplied credentials. Compare the client’s actual calls and options to the Garage compatibility table for the deployed release. If restic opens the repository but cannot read a pack, check the repository prefix, permissions and availability of the specific objects before blaming the file format. Garage S3 compatibility
Include a small file, a multi-part business document and a nested directory with non-default permissions. Where ownership IDs differ between the original and replacement operating systems, agree on the intended mapping and record it. A digest comparison alone cannot show that an application account can reopen a file or that the restored tree is sufficiently restricted.
Record elapsed time from the first recovery request through the verified read. Store the snapshot ID, recovery host configuration, manifest comparison and custody references with the runbook. A successful file restore establishes evidence for that snapshot and path. Database consistency, a complete application restart and a site-wide recovery deadline each require their own exercise.
Store a small reference manifest outside the repository under separate access control. If the only copy of the expected digest is restored alongside the file it describes, the operator can compare the two but lacks an independent baseline for deciding whether the selected snapshot contains the intended revision.
