restic restore --target /tmp/restore --include "/home/user/docs" latest

Category: Backup & Restore

restic restore --target /tmp/restore --include "/home/user/docs" latest

Restore only one folder from the latest snapshot

The --include pattern limits restoration to paths matching /home/user/docs; everything else is skipped. Patterns are relative to the backup root. Add --exclude to drop specific files from an otherwise full restore.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.