Holger Parplies schrieb:
> Hi,
>
> Lukas Wymann wrote on 2008-08-14 18:05:28 +0200 [Re: [BackupPC-users] Error
> restore with rsync and spaces in file names]:
>> [...]
>>> Now, when I restore file2.doc, it creates the following "file":
>>> /home/sub-directory/another\
>>> where "another\ " is the file restored.
>>>
>>> It does not handle the spaces within the directory-name (same happnes
>>> with file names containing spaces).
>> using rsync locally, therefore not through ssh
>
> you forgot to remove the '+' from argList, i.e. you have "$argList+" in
> RsyncClientRestoreCmd ?
>
> Regards,
> Holger
>
Hi Holger
Thanks for the hint. I removed the "+" as you suggested, and again, it
restores "a file", but the file's name is now not "another\ ", but
simply "another".
Investigated more into the escaping...
This is my RsyncClientRestoreCmd:
/usr/bin/sudo /var/lib/backuppc/bin/rsyncSend $argList
... which is not working.
And the content of my rsyncSend file is:
#/bin/sh -f
/usr/bin/rsync $*
(and it does not work either with exec /usr/bin/rsync $* nor with
/usr/bin/rsync "$*")
Finally I got it to restore the file on the correct place with the
correct name:
RsyncClientRestoreCmd: /usr/bin/sudo $rsyncPath $argList
Simple question I have left now: should I remove the "+" also in the
RsyncClientCmd, although it seems that it does do the backup?!?
my current RsyncClientCmd: /usr/bin/sudo $rsyncPath $argList+
And, ok, I found the hint with the "+" sign in the documentation,
although not under rsync, but under tar-section.
Thanks for your help. It got me on the right track!
Regards,
Lukas
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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/
|