OK, found the answer in the documentation.  See docs for $Conf{TarFullArgs}.  The '+' has to be removed from '$fileList+' if tar is being run locally (without rsh or ssh).  Both in $Conf{TarFullArgs} and $Conf{TarIncrArgs}


On 10/27/2012 09:02 PM, Edward A. Hildum wrote:
I'm running BackupPC 3.2.1 on a CentOS 6.3 x86_64 machine, as installed from the EPEL 6 repository.  I'm using tar to back up the server, using:

$TarClientCmd = "/usr/bin/sudo /bin/tar -c -v -f - -C $shareName+ --totals"

to back up the server.  The server is dual-boot, and I am trying to back up some windows directories that have embedded spaces.  All directories without spaces back up correctly, but I haven't found a way to specify directories with spaces that works.  I have tried the following things:

1 Replace spaces with '?', e.g. /win/c/Users/ehildum/TurboCAD?Professional?18/Drawings
     Xfer_log shows error: 
     /bin/tar: ./win/c/Users/ehildum/TurboCAD\177Professional\17718/Drawings: Cannot stat: No such file or directory

2. Just use spaces, e.g. /win/c/Users/ehildum/TurboCAD Professional 18/Drawings
    Xfer_log shows error: 
    /bin/tar: ./win/c/Users/ehildum/Documents/TurboCAD\\ Professional\\ 18/Drawings: Cannot stat: No such file or directory

3. Quote string, e.g.
"/win/c/Users/ehildum/TurboCAD Professional 18/Drawings"
Xfer_log shows error:
/bin/tar: ./\\"/win/c/Users/ehildum/Documents/TurboCAD\\ Professional\\ 18/Drawings: Cannot stat: No such file or directory

I have run the commands:

/usr/bin/sudo /bin/tar -c -v -f - -C / --totals ./win/c/Users/ehildum/Documents/TurboCAD\ Professional\ 18/Drawings
/usr/bin/sudo /bin/tar -c -v -f - -C / --totals "./win/c/Users/ehildum/Documents/TurboCAD Professional 18/Drawings"

as the backuppc user, and both forms work.  I just can't figure out how to get to list the directories in $BackupFilesOnly to get the right strings passed to tar.

Another strange thing is that in the Xfer_log, the listed tar command for method 2 appears to have the correct form:

... ./win/c/Users/ehildum/Documents/TurboCAD\ Professional\ 18/Drawings ...

Any help appreciated.

WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.

BackupPC-users mailing list
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/