Restic restore guide
every restore scenario

Updated November 2026

List snapshots, restore a directory or a single file, or mount the repository and browse.

On this page

Step 1: List your snapshots

Every restore starts by finding the right snapshot ID. Before you need a restore, verify your restic backups with restic check and --read-data so the restore is not the first test.

Shell
source /etc/restic/env

# List all snapshots
restic snapshots

# List snapshots for a specific host
restic snapshots --host web01

# List snapshots with a specific tag
restic snapshots --tag production
This guide works with any restic REST server.
Ours is zero-knowledge and ready in a minute: Starter $3/mo for 250 GB, or $30 a year with yearly billing. 30-day money-back on every paid plan.
Choose Starter, 250 GB

Restore a full snapshot

Restore into an empty target directory, then move files into place. Use latest or a snapshot ID from step 1:

Shell
# Restore the most recent snapshot
restic restore latest --target /tmp/full-restore

# Restore a specific snapshot by ID
restic restore a1b2c3d4 --target /tmp/restore-20260101

# Restore to original location (be careful: overwrites existing files)
restic restore latest --target /

Restore a specific file or directory

Use --include to pull back only what you need:

Shell
# Restore a single file
restic restore latest \
  --target /tmp/restore \
  --include /etc/nginx/nginx.conf

# Restore an entire directory
restic restore latest \
  --target /tmp/restore \
  --include /var/www/mysite

# Restore multiple paths
restic restore latest \
  --target /tmp/restore \
  --include /etc \
  --include /var/www

Restored files keep their original path under the target: /etc/nginx/nginx.conf restored to /tmp/restore lands at /tmp/restore/etc/nginx/nginx.conf.

Mount and browse without restoring

With FUSE installed, you can mount the repository and browse snapshots like folders, copying out only what you need:

Shell
apt install -y fuse
mkdir -p /mnt/restic

# Mount the repository
restic mount /mnt/restic &

# Browse snapshots
ls /mnt/restic/snapshots/
ls /mnt/restic/snapshots/latest/etc/

# Copy a specific file
cp /mnt/restic/snapshots/latest/var/www/index.html /tmp/

# Unmount
umount /mnt/restic

Verify backup integrity before you need it

Check the repository on a schedule:

Shell
# Quick check (metadata only, fast)
restic check

# Full check (reads all data, slow but thorough)
restic check --read-data

# Check a random 10% sample (good balance)
restic check --read-data-subset=10%

Run restic check monthly and restic check --read-data-subset=10% quarterly to catch corruption early.

Restore after complete system loss

To rebuild a machine, boot a live environment, install restic, set your credentials and restore. Keep RESTIC_REPOSITORY and RESTIC_PASSWORD off the machine, in a password manager or a locked printout.

Restore performance and what affects it

Restore speed is bounded by your download speed and chunk reassembly; a single file downloads only its own chunks. On SFTP backends, --option sftp.connections=8 raises parallelism.

Restoring specific file types: practical examples

Most real restores are one service's files. These one-liners restore to /tmp/r so you can inspect before copying back:

  • Nginx config:restic restore latest --target /tmp/r --include /etc/nginx, then diff and apply selectively
  • PostgreSQL dump:restic restore latest --target /tmp/r --include /var/backups/postgres, then psql -f /tmp/r/var/backups/postgres/dump.sql
  • SSH keys:restic restore latest --target /tmp/r --include /root/.ssh, then copy with correct permissions
  • Docker volume:restic restore latest --target /tmp/r --include /var/lib/docker/volumes/myapp_data, then copy back to volume path

The test restore habit

Restore one file every month and a full snapshot every quarter. No egress fees, so tests cost nothing.

Next step: connect your first machine

The setup guide takes a new vault from signup to a first encrypted backup and a test restore, with the commands for Linux, macOS and Windows. On a Linux server the one-line installer does it in a single command.

Starter fits most single servers and small homelabs.
Starter $3/mo for 250 GB, or $30 a year with yearly billing. 30-day money-back on every paid plan. Or start with 10 GB free, no card.
Choose Starter, 250 GB

Restic restore FAQ

You need: the RESTIC_REPOSITORY path (your vault URL), the RESTIC_PASSWORD, and your vault token (it is part of the repository URL in your portal). Keep these in a password manager and test restoration before you need it.
Depends on snapshot size and network speed. Restic only transfers data you actually need, so restoring a single file is fast. Full system restores depend on how much data changed since the initial backup.
Yes. Install restic on the new machine, configure the same repository credentials, and run restic restore. The repository is independent of the machine that created it.
Run restic repair index (rebuild-index before 0.16) to rebuild the index from pack files. Data that is actually missing is gone, which is why regular test restores matter. ServerCrate's checksummed ZFS storage prevents silent corruption on our side.

Keep going

Test your restore today.

Private vault. ZFS-backed. No egress fees.

Need more than 10 GB? Starter is 250 GB for $30/yr, and every plan keeps the same vault and key when you move up.

Cancel anytime. 10 GB free tier never expires. No egress fees.