BackupPC-users

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

2009-01-30 03:28:27
Subject: Re: [BackupPC-users] Arguments for --filter don't get proper escaping
From: Thomas Karcher <thkarcher AT gmx DOT de>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Fri, 30 Jan 2009 09:26:59 +0100
Hi,

> > Is your space character different from the one above (other than
> being escaped

As far as I see, no - you are thinking of tab or sth.?

Unfortunately, the issue arose another time: I'm backing up a system via
ssh -> sudo rsync ... again, I specified '--filter=:- /nobackup.txt' in
the config.pl. The command with $argList+ looks like this:

/usr/bin/ssh -C -q -x -l user host.domain.com /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 . /usr/local/

In the .authorized_keys of user on host.domain.com, I wrote

command="sudo $SSH_ORIGINAL_COMMAND" ...

which works fine without --filter. But the error is this:

Fatal error (bad version): invalid modifier sequence at '\' in filter
rule: :-\

So I removed the "+" from $argList, now the command looks like this:

 /usr/bin/ssh -C -q -x -l user host.domain.com /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 . /usr/local/

... and the error is:

Fatal error (bad version): unexpected end of filter rule: :-

And no matter what I tried manually as command (arbitrary numbers of
backslashes, single and double quotes around the argument of --filter),
I had no success.

Another idea how I could solve this? It's all about this **** space in
the --filter argument ...


Thanks,
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/