Mark writes:
> I just encountered the following:
>
> BackupPC 2.1.2pl2, server and host both FC5, using rsync backup/restore
>
> - Host contains empty directoy /var/lib/vmware/Virtual Machines
> - On BackupPC, browse to /var/lib/vmware/Virtual Machines, which contains 2
> dirs
> - Select all and start the restore
>
> On host, BackupPC creates the dir /var/lib/vmware/Virtual\ Machines and
> restores
> everything there. (Note that the restored dir contains the \ trying to escape
> the space.)
>
> Result is:
> $ ll
> drwxrwxrwt 2 root root 4096 Sep 28 10:29 Virtual Machines
> drwxrwxrwt 4 root root 4096 Sep 8 09:11 Virtual\ Machines
>
> and my restored dirs are in the second directory.
>
> Easily fixed, but is there a config option to avoid this?
Just to summarize our off-list discussion and resolution: for the
local host backup/restore using sudo, "argList+" (which denotes
shell escaping of the argList) should be replaced by "argList"
(no shell escaping of the argList).
So this setting:
$Conf{RsyncClientRestoreCmd} = '/usr/bin/sudo $rsyncPath $argList+';
should instead be:
$Conf{RsyncClientRestoreCmd} = '/usr/bin/sudo $rsyncPath $argList';
Craig
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/