Restore Only A Specific Folder
Let's restore the /home/mac directory
1) Restore /home/mac into a staging folder (safe)
Create a clean staging directory:
Restore only /home/mac from the backend (example backend: b2):
Verify the restored files exist (restic recreates the absolute path under the target):
Expected restore path:
-
/root/restore-home/home/mac
2) Copy restored data back into /home/mac
Make a safety backup of the current home:home (optional):
Copy the restored home back into place:
Fix SSH permissions (recommended):
Notes
-
--include /home/macrestores only that path (does not restore/etc,/var, etc.). -
If your backend name differs, replace
-b b2with your backend (check underbackends:in/home/mac/.autorestic.yml).