On 06/04/2012 04:41 PM, m...@electronico.nc 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. -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it. _______________________________________________ rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki