BackupPC-users

Re: [BackupPC-users] Parameter for incremental backups on localhost using tarCreate.sh script

2013-10-17 15:40:05
Subject: Re: [BackupPC-users] Parameter for incremental backups on localhost using tarCreate.sh script
From: Les Mikesell <lesmikesell AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 17 Oct 2013 14:38:35 -0500
On Thu, Oct 17, 2013 at 1:30 PM, Phil Reynolds
<phil-backuppc AT tinsleyviaduct DOT 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?

-- 
   Les Mikesell
     lesmikesell AT gmail DOT 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 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/