I have a restic job backing up my entire hard drive running as root:
restic --quiet --cleanup-cache -r $REMOTE_URL backup /
root doesn’t have access to other users’
~/.gvfs directories and so restic always displays the following error message:
error for /home/francois/.gvfs: lstat /home/francois/.gvfs: permission denied
I thought I would be able to simply exclude that directory with the following:
restic --quiet --cleanup-cache -r $REMOTE_URL backup / --exclude-file $EXCLUDE_FILE
where the exclude file includes:
but it doesn’t make the error message go away.
Next I tried the following:
restic --quiet --cleanup-cache -r $REMOTE_URL backup / --exclude=/home/francois/.gvfs --exclude-file $EXCLUDE_FILE
Am I misunderstanding what the
--exclude-file arguments do or should I file a bug?
(I am able to reproduce this 100% of the time on restic 0.8.3 and 0.9.6.)