On Mon, Nov 26, 2012 at 5:36 PM, Chris Adamson
> I implemented the tar script option for backing up my localhost as per:
> so the "if you are more cautious" option where you create a script that
> runs "tar -c $*"
> When an incremental is run I get the following warning message in the
> Running: /usr/bin/sudo /root/tar_create -c -v -f - -C /etc --totals
> --ignore-failed-read --newer=2012-11-22 19:00:00 .
> incr backup started back to 2012-11-22 19:00:00 (backup #387) for directory /etc
> Xfer PIDs are now 30071,30070
> /bin/tar: Option --after-date: Treating date `2012-11-22' as 2012-11-22 00:00:00
> /bin/tar: 19\:00\:00: Warning: Cannot stat: No such file or directory
> This does not happen if I use the less cautious option of letting backuppc run tar as root.
Your problem is that you are losing the quoting so the timestamp is
split at the whitespace and tar thinks it is supposed to back up a
file named 19:00:00. I think your script should use $@ instead of