From: Chris A. <chr...@mc...> - 2012-11-27 00:02:46
|
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. Chris. -- Dr Christopher Adamson, PhD (Melb.), B Software Engineering (Hons., Monash) Research Officer Developmental Imaging, Critical Care and Neurosciences Murdoch Childrens Research Institute The Royal Children’s Hospital Flemington Road Parkville Victoria 3052 Australia T 9906 6780 M XXXX XXX XXX E chr...@mc... www.mcri.edu.au ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ |
From: Les M. <les...@gm...> - 2012-11-28 19:34:19
|
On Mon, Nov 26, 2012 at 5:36 PM, Chris Adamson <chr...@mc...> 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 les...@gm... |