Re: [BackupPC-users] warning message when using sudo tar script on localhost
2012-11-28 14:35:43
On Mon, Nov 26, 2012 at 5:36 PM, Chris Adamson
<chris.adamson AT mcri.edu DOT au> wrote:
> List,
>
> I implemented the tar script option for backing up my localhost as per:
> http://backuppc.sourceforge.net/faq/localhost.html
>
> 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
> log
>
> 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
$*.
--
Les Mikesell
lesmikesell AT gmail DOT com
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
INSIGHTS What's next for parallel hardware, programming and related areas?
Interviews and blogs by thought leaders keep you ahead of the curve.
http://goparallel.sourceforge.net
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
|
|