[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] Filename with special character

From: me
Subject: Re: [rdiff-backup-users] Filename with special character
Date: Tue, 05 Jun 2012 10:44:40 +1100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

Le 05/06/2012 09:56, Robert Nichols a écrit :
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.

Thanks Bob,
Discovered this as you was probably typing your answer.
Thanks again to have taken time to answer :-)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]