A successful backup command does not prove that your website can be recovered. A useful restic rehearsal checks the repository, restores a selected snapshot into a separate destination and then verifies the application with its database and required configuration. Each step answers a different question.
This guide assumes an existing restic repository, authorized access and a separate Linux test environment. It is a rehearsal procedure, not a command to overwrite a production server. It does not assume that a hosting plan includes restic or offsite storage.
1. Define the recovery you need to prove
Choose a realistic scenario: one missing upload, a damaged database, or loss of the whole VPS. A file-recovery exercise cannot certify a whole-server rebuild. List the website code, media, database export, service configuration and external credentials needed for your chosen scenario.
Set two business limits before testing: the oldest acceptable recovered data and the longest acceptable interruption. Record the snapshot’s capture time separately from the date on which it was uploaded to storage. A new repository timestamp cannot make an old database dump current.
Prepare an empty test destination with enough capacity for the restored data, database and temporary work. Keep it private. Before starting any copied application, prevent it from sending real email, charging customers, consuming production queues or running scheduled jobs. Use test credentials or explicitly blocked external integrations.
For a separately operated backup repository, compare our storage-server configurations against retained data, growth and restore-transfer needs. Choose a destination independent of the workload you are protecting, and agree who configures restic, manages repository credentials and tests restoration. Storage capacity by itself is not a managed backup or a verified recovery.
2. Select an explicit snapshot
Use your existing protected repository configuration. Do not paste repository passwords or storage access keys into commands, tickets or this article’s examples. First inspect the installed version and repository inventory:
restic version
restic snapshotsChoose a snapshot by its recorded host, time, paths and tags. Inspect its contents before restoring:
restic ls SNAPSHOT_IDReplace SNAPSHOT_ID with the selected identifier. Avoid an unqualified “latest” when several hosts or jobs share a repository. Save the selected identifier in the rehearsal record so someone else can reproduce the same test. These inventory operations are documented in restic’s repository guide.
3. Check repository integrity without confusing it with recovery
restic checkThe normal check examines repository structure. Reading stored data requires the additional --read-data option; --read-data-subset supports partial checks. Review the installed version’s help and the repository guide before choosing a scan. A full data read can consume substantial time and remote transfer allowance. A subset result applies only to the selected subset, and no repository check proves that an application can start.
If a check fails, retain the exact error and snapshot identity. Do not immediately prune, forget snapshots or remove locks to make the output look clean. Establish whether a live backup is running, and preserve another recovery copy before attempting repair.
4. Restore into a new private directory
On the isolated test machine, set the selected snapshot and let mktemp create a new destination. The following writes restored files there; it does not switch a website or alter public DNS:
WC_SNAPSHOT=REPLACE_WITH_SELECTED_SNAPSHOT_ID
umask 077
WC_RESTORE=$(mktemp -d /var/tmp/restic-rehearsal.XXXXXX) &&
restic restore "$WC_SNAPSHOT" --target "$WC_RESTORE" &&
printf 'Restored test directory: %s\n' "$WC_RESTORE"Use an approved data volume instead of /var/tmp when the restore is large. Restic normally recreates the snapshot’s path structure beneath the target. The --path option filters snapshot selection; it is not a file-exclusion filter. Use documented include/exclude options for a deliberately limited recovery. A partial restore must be labeled partial. See the restore reference.
5. Verify data before starting services
Confirm the required directories and representative old and recent uploads are present.
Check ownership, permissions, symbolic-link targets and whether expected users exist on the test system.
Verify representative file hashes against an independently retained manifest when one exists.
Confirm the database artifact is a valid export for the intended database engine and version.
Identify missing secrets and licenses through the approved recovery process; do not make them public to simplify testing.
A file snapshot of a running database is not automatically an application-consistent backup. Use the database’s supported dump or physical-backup procedure when preparing the capture, and restore with that engine’s supported tools. Restic’s backup documentation explains its file-oriented capture behavior; application consistency needs its own procedure.
6. Prove that the restored application works
Acceptance check | Evidence to keep |
|---|---|
Database restoration | Import completed without ignored errors; expected record identity or counts checked. |
Website and media | Representative pages, a recent article and selected uploads render from the restored copy. |
Administrative access | An authorized existing account can sign in to the isolated copy. |
Editing and publication | A disposable test edit can be saved, published and reversed within the test environment. |
Services after restart | The test application starts through its normal service manager after a controlled restart. |
External dependencies | Email, payments, DNS and tunnel credentials are listed separately, with their test or recovery status. |
Measure the time to obtain credentials, download the data, restore the database and reach an accepted application state. Measuring only file extraction understates recovery time. For a website migration, continue with the synchronization and cutover workflow after the rehearsal passes; do not route visitors to the test copy during this exercise.
7. Close the exercise with a usable recovery record
Record the snapshot, restic version, database version, restored scope, checks performed, failures and missing dependencies. Distinguish “files restored” from “application recovery passed.” Keep the current working backup while correcting deficiencies, then repeat the failed portion with a new consistent capture.
Remove the isolated copy through your normal secure data-retention process only after the evidence is saved. The backup repository remains intact. The wider storage protection guide helps separate storage resilience, backup retention and application recovery responsibilities.
References and further reading
Documentation reviewed on 29 November 2026. This is a documentation-based operating guide, not a report of a customer incident or a benchmark. Examples are illustrative; verify paths, permissions and installed command options in your own environment.



