[Top][All Lists]

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

Re: [rdiff-backup-users] New rdiff user at a loss

From: Thomas Harold
Subject: Re: [rdiff-backup-users] New rdiff user at a loss
Date: Wed, 06 Nov 2013 16:54:48 -0500
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1

On 11/6/2013 11:54 AM, ron89 wrote:
I got thrown into this and I am basically a Linux novice I am used to
other backups solutions such as symantec, veeam, and vranger.

before my time here this was and is the current setup Backups run
from location A over ssh to Location B 800 miles away.

I want to restore a backup from Location B to location A to verify it

I have built a new Centos 6.4 vm and installed rdiff. from my
readings this seems to be the correct restore command "rdiff-backup
-r now address@hidden::/data/bl1/bl1 /rdiff-backup-data" I
assume this is where the data is kept but I am not positive. below i
get the following error, all other folders give me "could not find
rdiff-backup repository"

What does this the below error mean any input would be grateful so I
can complete the full restore.

The simple answer is:

Exception '[Errno 13] Permission denied: '/data/bl1/bl1''

Which means the rob.aster account at that IP address does not have proper permissions on the target server.

Secondly, you probably don't want to restore to the directory "/rdiff-backup-data" as that is the same as what rdiff-backup users to track its metadata.


You can use the --verify or --verify-at options to validate an rdiff-backup target directory (i.e. a location that has a "rdiff-backup-data" directory inside it).

In this particular example:

VALIDATELASTN is supposed to be a number (0+) which tells the script how many increments need to be verified.

RDIFFINCREMENTS ends up as a space-delimited list of the last N increments in the destination directory.

OFFHOST is everything before the double-colon, OFFBASE is the parent directory (ending in a slash) and DIR is the directory. This might evaluate out as:


Notice the use of "--list-increments", which is also a way to test that you have specified your target server/directory correctly.


if [[ ! $VALIDATELASTN =~ ^[0-9]+$ ]]; then VALIDATELASTN=5; fi
    rdiff-backup --list-increments ${OFFHOST}::${OFFBASE}${DIR} | \
    grep -o 'increments\..*\.dir' | \
    sed 's/^increments\.//g' | sed 's/\.dir$//g' | \
    sort | tail -n $VALIDATELASTN

echo "rdiff-backup verify last $VALIDATELASTN increments"

    echo "Verify backup at: ${INCREMENTTIME}"
rdiff-backup --verify-at "${INCREMENTTIME}" ${OFFHOST}::${OFFBASE}${DIR}

    if [ $status -ne 0 ]; then
        echo "" >> $TMPFILE
        echo "rdiff-backup verify failed with status: $status"

echo "rdiff-backup --verify-at "${INCREMENTTIME}" ${OFFHOST}::${OFFBASE}${DIR} failed with status: $status" >> $TMPFILE

        let ERRCNT+=1


reply via email to

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