On Thu, Oct 17, 2013 at 3:27 PM, Phil Reynolds
<phil-backu...@tinsleyviaduct.com> wrote:
>
>> On Thu, Oct 17, 2013 at 1:30 PM, Phil Reynolds
>> <phil-backu...@tinsleyviaduct.com> wrote:
>> > I am having problems backing up the localhost using a tarCreate.sh
>> > script - I can do full backups, but the date and time seems
>> > impossible to present properly for incrementals.
>> >
>> > $Conf{TarIncrArgs} = '--newer=$incrDate $fileList+' as recommended
>> > by the documentation fails to escape the space between the date and
>> > time. Leaving it at the default as for a remote host
>> > ($Conf{TarIncrArgs} = '--newer=$incrDate+ $fileList+') is also no
>> > good, as the unnecessary escaping makes the parameter so that tar
>> > fails to understand it.
>> >
>> > The net result in both cases is a failed backup, because tar tries
>> > to stat something derived from the time, as if it was a filename.
>> >
>> > How can I get round this problem?
>>
>> Are you sure your shell script is receiving the date as multiple
>> parameters?   Or is it parsing and breaking on the space in your
>> script or the command line being handed to tar?
>
> Hmmm... it looks possible the breaking is happening in my script - and
> it's the one referred to in the documentation.


If you mean the one with:
exec /bin/tar $*
I think that should be $@ to maintain the positional arguments.

Personally, I would just use rsync over ssh like any other target and
not worry about the CPU doing a little extra work.  It's probably not
doing much else then anyway...

-- 
   Les Mikesell
     lesmikes...@gmail.com

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
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