[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] How to ignore "No increments older than..."
From: |
dean gaudet |
Subject: |
Re: [rdiff-backup-users] How to ignore "No increments older than..." |
Date: |
Mon, 21 Apr 2003 14:14:46 -0700 (PDT) |
On Mon, 21 Apr 2003, Kingsley G. Morse Jr. wrote:
> On Sun:20:02, dean gaudet wrote:
> > On Sun, 20 Apr 2003, Kingsley G. Morse Jr. wrote:
> >
> > > The main reason I'm posting is to ask for advice
> > > on how to change my bash script so it will ignore
> > > when rdiff-backup returns 1 for
> > >
> > > "Fatal Error: No increments older than ... found"
> > >
> > > when doing
> > >
> > > $ rdiff-backup \
> > > -v3 \
> > > --force \
> > > --remove-older-than 4M \
> > > /mnt/backup \
> > > >> /var/log/mirror_backup \
> > > 2>> /var/log/mirror_backup.err
> > >
> > > but still report other fatal errors.
> >
> > i split it into two invocations -- one with --force --remove-older-than,
> > the other just for the backup.
>
> I don't see how that could avoid
>
> "Fatal Error: No increments older than ... found"
i'm just saying that if you split it up this way then you don't have to
put a --force on the command which actually does the backup... and then
you get a useful 0/1 exit code from the backup command itself. that
seemed to be the question you were asking. if you don't like the error
message then that's a simple 2>&1 | grep -v '^Fatal Error: No increments
older than ... found' :)
-dean