rdiff-backup-users
[Top][All Lists]
Advanced

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

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


From: Robert Nichols
Subject: Re: [rdiff-backup-users] Filename with special character
Date: Mon, 04 Jun 2012 17:56:05 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120424 Thunderbird/10.0.4

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.

--
Bob Nichols     "NOSPAM" is really part of my email address.
                Do NOT delete it.




reply via email to

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