Restoring Files From a Restic Backup
Prerequisites
Section titled “Prerequisites”To restore files from a Restic backup, you need two things:
- The repository URL: Copy this from the BorgBase control panel. It starts with
rest:https://. - The repository password: This is the same password used to initialize the repository and for subsequent backups. BorgBase has no knowledge of it and can’t help recover it, so keep it in a safe place.
Step 1 – List Snapshots
Section titled “Step 1 – List Snapshots”To avoid having to enter the repository URL and password with each command, set them as shell variables:
export RESTIC_REPOSITORY=rest:https://xxxxx:yyyyyyyyyyy@xxxxx.repo.borgbase.comexport RESTIC_PASSWORD=mysecretThen list snapshots:
restic snapshotsNote the ID of the snapshot you want to restore and proceed to the next step.
Step 2 – Restore Files
Section titled “Step 2 – Restore Files”To download files from a backup:
restic restore 99999999 --target /tmp/restore-workFurther Reading
Section titled “Further Reading”You can find more on how to restore files in the official Restic documentation.