Paranoid person that I am, I followed the instructions here (
http://backuppc.sourceforge.net/faq/localhost.html) to run tar in a way that
would not allow the backuppc user to become root.

I tried wrapping tar up using the script in the documentation:
#!/bin/sh -f
exec /bin/tar -c $*

And that works fine for full backups.  However, on incrementals, it breaks
on
$Conf{TarIncrArgs} = '--newer=$incrDate $fileList';

The problem is that $incrDate contains a space (e.g. 11/11/2010 12:00:00),
and tar interprets the 12:00:00 as another argument.  Putting $incrDate in
quotes does not seem to solve the problem.

So I changed my script to:
#!/bin/bash
/bin/tar -c $(printf '%q' $@)

But now I'm getting this error from tar:
Running: /usr/bin/sudo /usr/local/share/backuppc/bin/BackupPC_tarLocalhost
-v -f - -C /etc --totals --newer=2010-11-11 12:35:05 .
incr backup started back to 2010-11-11 12:35:05 (backup #1) for directory
/etc
Xfer PIDs are now 9581,9580
tar: --: (PROGRAM ERROR) Option should have been recognized!?

I understand a little bit about Bash escaping, but I'm out of my depth here.
 Anyone?

Thanks,
-Frank
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to