From: Craig B. <cba...@us...> - 2006-11-02 01:40:36
|
Mark writes: > I just encountered the following: >=20 > BackupPC 2.1.2pl2, server and host both FC5, using rsync backup/restore= >=20 > - Host contains empty directoy /var/lib/vmware/Virtual Machines > - On BackupPC, browse to /var/lib/vmware/Virtual Machines, which contai= ns 2 dirs > - Select all and start the restore >=20 > 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.) >=20 > 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 >=20 > and my restored dirs are in the second directory. >=20 > 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} =3D '/usr/bin/sudo $rsyncPath $argList+'= ; should instead be: $Conf{RsyncClientRestoreCmd} =3D '/usr/bin/sudo $rsyncPath $argList';= Craig |