Hello, and welcome to the forum! I think there’s a misunderstanding: the option --path
for the restore
command is just used to find a snapshot to restore, it does not limit what is being restored. In order to include or exclude paths from the restore, please use --exclude
or --include
. In your case, I think this could work:
$ restic -r /media/autoshares/restic/mydata restore 8530cb2a --target / --include /data/yang
Please be aware that if you specify absolute paths using --include
, they need to match what’s in the snapshot. You can check using restic ls <snapshotID>
.