[Top][All Lists]

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

Re: [rdiff-backup-users] Intermittent connection failures

From: Phil Austin
Subject: Re: [rdiff-backup-users] Intermittent connection failures
Date: Mon, 04 Jul 2011 11:02:23 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv: Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11

On 07/04/2011 06:48 AM, Maarten Bezemer wrote:

Another way to find out what's going on, could be to add -v to the ssh
command (remote schema).

I had a similar problem, and kluged my way through using a
python script to write a rdiff-backup shell script that added
top-level directories
one at a time.  By check pointing in this way I avoided having to
start over each time I lost the connection.  Once I got the full
directory tree backed up the incrementals were  small enough
to avoid whatever problem was causing the drops.

Specifically, the script below writes a file called write_backup.sh
that looks like this:

#!/bin/bash -v

echo '+++climate_data/gpcp+++'
/home/phil/usr64/bin/rdiff-backup --include climate_data/gpcp --exclude '**' --remote-schema 'ssh -C %s /home/phil/usr64/bin/rdiff-backup --server' -v 8 climate_data backup_phil::/media/green1/climate_data

echo '+++climate_data/agcm3+++'
/home/phil/usr64/bin/rdiff-backup --include climate_data/gpcp --include climate_data/agcm3 --exclude '**' --remote-schema 'ssh -C %s /home/phil/usr64/bin/rdiff-backup --server' -v 8 climate_data backup_phil::/media/green1/climate_data

echo '+++climate_data/modis+++'
/home/phil/usr64/bin/rdiff-backup --include climate_data/gpcp --include climate_data/agcm3 --include climate_data/modis --exclude '**' --remote-schema 'ssh -C %s /home/phil/usr64/bin/rdiff-backup --server' -v 8 climate_data backup_phil::/media/green1/climate_data


import textwrap, glob
import os.path
       echo '+++%s+++'
/home/phil/usr64/bin/rdiff-backup %s --exclude '**' --remote-schema 'ssh -C %%s /home/phil/usr64/bin/rdiff-backup --server' -v 8 climate_data backup_phil::/media/green1/climate_data


include_string=' '
outfile.write('#!/bin/bash -v\n')
for in_file in allfiles:
    if os.path.isdir(in_file):
        include_string = include_string + '--include %s  ' % in_file
        outfile.write(the_template % (in_file,include_string))

reply via email to

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