On 06/04/2012 04:41 PM, address@hidden wrote:
> Here is an example:
rdiff-backup --exclude "/media/guillaume/archives/$RECYCLE.BIN"
/media/guillaume/archives /home/serveur/backup/guillaume/archives
With that syntax, the shell will expand the $RECYCLE variable, and, since
there is probably no variable by that name, the actual command executed
will be:
rdiff-backup --exclude "/media/guillaume/archives/.BIN" \
/media/guillaume/archives /home/serveur/backup/guillaume/archives
From the backtrace, it appears that rdiff-backup is backing up the file
with the literal name '$RECYCLE.BIN' and is having some problem setting
setting the permissions on that file in the archive. I've not been able
to reproduce the problem you are seeing.
Any time you are trying to run a command with arguments that include a
shell meta-character that need to be preserved literally, you should
enclose that argument in single quotes:
rdiff-backup --exclude '/media/guillaume/archives/$RECYCLE.BIN' ...
Often, the simpler alternative is to build a separate file containing
the names of files to exclude and then pass that to rdiff-backup with
the "--exclude-filelist" or "--exclude-globbing-filelist" option.