ooops, i think reply-to goes to the list. sorry.
-------- Original Message --------
Subject: Re: [BackupPC-users] error in "--newer" tar's parameter
Date: Mon, 27 Nov 2006 17:50:11 -0200
From: Aníbal Pacheco <[EMAIL PROTECTED]>
To: Holger Parplies <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
Hmmmmmm ... does my $fileList must have that plus sign at the end too?
I think since i've changed my backup method to use sudo due to thousands
of permission errors this two comment lines became wrong:
# remove extra shell escapes ($fileList+ etc.) that are
# needed for remote backups but may break local ones
$Conf{TarFullArgs} = '$fileList';
$Conf{TarIncrArgs} = '--newer=$incrDate $fileList';
and now I must comment the two sencond lines to get the defaults or add
the plus sign to the variables. I'm correct?
thank you.
Holger Parplies wrote:
> Hi,
>
> you, An?bal Pacheco, wrote on 27.11.2006 at 15:16:24 [[BackupPC-users] error
> in "--newer" tar's parameter]:
>> The value of the parameter "--newer" is a date with a space between date
>> and time, so I think tar commnad is thinking that the string
>> corresponding to the time is a file. The question is if this is a bug or
>> an error of my configuration? Thank you.
>
> it's an error in your configuration. You need to use '$incrDate+' instead of
> '$incrDate' in your $Conf{TarIncrArgs}. The comment in the example config.pl
> regarding "running tar locally" means without a shell. Using 'sudo' locally
> gives you the same requirements as running tar over ssh or rsh: the argument
> to '--newer' needs to be shell-escaped.
>
>> Running: /usr/bin/sudo /root/bin/tarCreate -v -f - -C /etc --totals
>> --newer=2006-11-23 11:33:18 .
>
> On the other hand, you're not using tar but rather, seemingly, a wrapper
> script '/root/bin/tarCreate'. Maybe you actually have '$incrDate+' in your
> configuration and '/root/bin/tarCreate' does insufficient quoting when
> calling 'tar'? That, of course, depends on what '/root/bin/tarCreate'
> actually is and what it does :).
>
> Hope that helps.
>
> Regards,
> Holger
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/