Re: problem with reference archive path

Glen Davies <[email protected]> Tue, 23 Sep 2008 21:55:16 +1200
Newsgroups gmane.comp.sysutils.backup.sarab
Organization Core Education
Message-ID <[email protected]>
Managed to fix this problem. I changed the reference_basename line to 
the following and it now works fine for me - not sure if it was a 
difference in sed on ubuntu or maybe dar writing a different archive 
filename that caused the problem

REFERENCE_BASENAME="--ref $(/bin/ls 
$DESTINATION/$REFERENCE_ARCHIVE/*.dar | head -n 1 | sed -e 
's/\.[0-9]*\.dar$//')"


Glen

> Hi
> Thanks for this great script - has saved me a lot of time. I have 
> just  one minor problem when automating a differential backup via 
> cron. When  the script is run it is giving the following prompt
>
> Warning, 09-15-2008_1004.10.dar seems more to be a slice name than a  
> base name. Do you want to replace it by 09-15-2008_1004 ? [return = 
> OK  | Esc = cancel]
>
> so, the cron fails as no answer is given. Can the script be altered 
> so  it strips the .10.dar of the reference archive name so as to 
> avoid  this prompt? I am running it on ubuntu 8.04
>     

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/