I’m just getting started with restic, but I can’t seem to exclude files. Here’s how I run the backup:
restic backup -r therepo --verbose --exclude-file="/home/me/.config/backup/restic-excludes" --files-from="/home/me/.config/backup/restic-includes"
This runs without errors. inside
# don't save videos *.avi *.mp4 *.mov *.wmv *.wma *.flv *.ogg *.mpeg *.mpg
restic-includes is a list which I recognize when I look at Paths running
restic -r therepo/ snapshots.
However, when I do:
estic -r therepo/ restore ab478bc7 --target tmp/restore
and navigate inside the
tmp/restore I find videos with
.avi format. More bewildering, if I run
restic -r therepo/ ls ab478bc7 | grep .avi
I don’t see any lines with
.avi endings (only some partial matches like savings.txt or such.
So I’m very confused.
- The files don’t seem to be there when I list them
- The files should be excluded when I run the backup
so How are the files restored? and how can I further diagnose what is happending?