Gekko Erik,

Unfortunaly, the proposed command does not work.

Regards,
Peter

> Op 6 apr. 2014 om 08:13 heeft Peter Peterse <pe...@peterse-uithuizen.com> het 
> volgende geschreven:
> 
> Hello Eric,
> 
> I've solved it by set a change directory before the problematic tar command. 
> The suggested change will be tested tonight.
> 
> I'm using CentOS 5 latest update (5.10). Qtp:
>  qmailtoaster-plus-0.3.2-1.4.20
> 
> Thanks,
> Peter
> 
> 
> 
> -------- Oorspronkelijk bericht --------
> Van Eric Shubert <e...@shubes.net> 
> Datum: 06-04-2014 02:49 (GMT+01:00) 
> Aan qmailtoaster-list@qmailtoaster.com 
> Onderwerp [qmailtoaster] Re: qtp-backup won't work 
> 
> 
> On 04/05/2014 11:13 AM, Peter Peterse wrote:
> > Hello list,
> >
> > on my qtp installation the backup doesn't work any more. I don't
> > remember that I've change something in the script, so maybe it's an
> > issue one of the yum update processes.
> >
> > I've trace the issue to the next command which is located in the script:
> > tar -C $backupdest \
> >      -czf $backupdest/$curlfile $DATENAME-*
> >
> > When I start the command on the console it result to an error:
> > [root@mail ~]# tar -C /backup/qmailbkup  -czf
> > /backup/qmailbkup/201404052008-backup.tar.gz 201404052008-*
> > tar: 201404052008-*: Cannot stat: No such file or directory
> > tar: Error exit delayed from previous errors
> >
> > When I look in the directory /backup/qmailbkup I see the next files:
> > 201404052008-assign.tar.bz2
> > 201404052008-backup.tar.gz
> > 201404052008-qmailadminpasswd.tar.bz2
> > 201404052008-qmailcontrol.tar.bz2
> > 201404052008-spamassassin-files.tar.bz2
> > 201404052008-squirrelmail-plugins.tar.bz2
> > 201404052008-squirrelmail-prefs.tar.bz2
> > 201404052008-vpopmail.sql.gz
> >
> > The problem is that I don't see the difference with command which is
> > also in the qtp-backup script:
> >    tar -C /var/lib/squirrelmail/prefs \
> >        -cjf $backupdest/$SQMAILPREFS *
> >
> > I hope one of you can see the problem.
> >
> > Regards,
> > Peter
> >
> > ---------------------------------------------------------------------
> 
> My apologies for breaking this. I don't see the difference either to be 
> honest. I thought this version had been run already, and perhaps it was 
> with an older version where it worked.
> 
> tar is a little squirrelly with the options. It doesn't appear to be 
> picking up the -C option properly, for whatever reason.
> 
> Please try this:
> # tar --create --gzip --file $backupdest/$curlfile \
>        --directory $backupdest $DATENAME-*
> 
> and let us know if that works.
> 
> P.S. Which versions are you running (OS and qtp)?
> 
> -- 
> -Eric 'shubes'
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
> For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com

Reply via email to