rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] How to ignore "No increments older than..."


From: Jeb Campbell
Subject: Re: [rdiff-backup-users] How to ignore "No increments older than..."
Date: Mon, 21 Apr 2003 03:42:17 -0400

Not pretty, but it's late and it works here:

#!/bin/bash
LOG=/var/log/mirror_backup.err
rdiff-backup \
        -v3 \
        --force \
        --remove-older-than 4M \
        tmp/ \  #CHANGE ME!
        2>> $LOG.$$
        # that makes a $LOG.number temp file

# Now check exit status of rdiff-backup
if [ "$?" -eq "1" ]; then
        grep "Fatal Error: No increments older than" $LOG.$$ > /dev/null
        if [ "$?" -eq "0" ]; then
                #So file contains Fatal Error: No increments older than
                rm $LOG.$$
        else
                # ok it has something else, keep it
                cat $LOG.$$ >> $LOG
                rm $LOG.$$
        fi
else
        #Keep anyway
        cat $LOG.$$ >> $LOG
        rm $LOG.$$
fi



Jeb Campbell


On Sunday, April 20, 2003, at 09:57  PM, Kingsley G. Morse Jr. wrote:

Hail elder statesmen of rdiff-backup!

I've been using rdiff-backup for a few months and
am generally satisfied with it.

I like how it makes mirrors and incremental
backups.

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.

Thanks,
Kingsley
--



_______________________________________________
rdiff-backup-users mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/rdiff-backup-users






reply via email to

[Prev in Thread] Current Thread [Next in Thread]