BackupPC-users

Re: [BackupPC-users] Arguments for --filter don't get proper escaping

2009-01-29 07:32:45
Subject: Re: [BackupPC-users] Arguments for --filter don't get proper escaping
From: Thomas Karcher <thkarcher AT gmx DOT de>
To: Holger Parplies <wbppc AT parplies DOT de>
Date: Thu, 29 Jan 2009 13:31:03 +0100
Hi Holger,

> > > I observed that with an rsyncd as backup partner,
> > > everything seems to work fine, but with a command line rsync, it's odd:
> > > 
> > > Running: /usr/bin/sudo /usr/bin/rsync --server --sender --numeric-ids
> > > --perms --owner --group -D --links --hard-links --times
> > > --block-size=2048 --recursive --checksum-seed=32761 --one-file-system
> > > --filter=:-\\\ /nobackup.txt . /

> Actually, you need to use '$argList' instead of '$argList+' in
> $Conf{RsyncClientCmd} (and $Conf{RsyncClientRestoreCmd}). You are not
> passing the arguments through a shell (as you are when using 'ssh'), 
> so you don't want

For non-ssh-rsync-clients, that did the trick! Thank you!

> any escaping. That also means you should remove the backslash you apparently
> have in there now - contrary to your statement above. The entry in RsyncArgs
> should read '--filter=:- /nobackup.txt'. It is passed as one argument to
> 'sudo', which will pass it on as one argument to 'rsync', I believe. Quite

I re-checked: There is no "\" in my config.pl or <host>.pl in the
--filter statement! It is as I described. (The output comes from manual
command line backup.)

But arguments are handled differently depending on whether I use rsync
locally, rsync via ssh or rsyncd. So carefully applying the "+" does the
trick after all.


Thank you,
Thomas


Attachment: signature.asc
Description: This is a digitally signed message part

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/