Re: [rdiff-backup-users] Intermittent connection failures
On 5.7.2011 16.13, Dominic Raferd wrote: I agree. IMO rdiff-backup should never be run over an internet connection, only on a stable local network. If you want to get the rdiff-backup data offsite, create your rdiff-backup repository locally and then use rsync to mirror it to the offsite location. This is the technique used for TimeDicer primary/mirror servers. Thanks for all the input. I am now trying Dominic's solution, modified (because I have easier hands-on access to the target machine): First I rsync the data from source to target machine, then I use that to make a local rdiff-backup archive. (Good luck that 2TB HDs are already so inexpensive.) If it works, then we will know that the errors were related to unstable network connection - as I beliebe they were. Too bad I did not get more exact information on the causes. I did increase verbosity both in rdiff-backup and ssh, but all I found out was that the connection seems to break now and then, quite irregularly. - Jussi ___ rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Re: [rdiff-backup-users] Intermittent connection failures
On 04/07/2011 14:48, Maarten Bezemer wrote: ...My money would be on the network stability. Maybe rdiff-backup could somehow be made more robust, but I doubt the current design can be patched to support reconnection attempts when disconnected unexpectedly... I agree. IMO rdiff-backup should never be run over an internet connection, only on a stable local network. If you want to get the rdiff-backup data offsite, create your rdiff-backup repository locally and then use rsync to mirror it to the offsite location. This is the technique used for TimeDicer primary/mirror servers. Dominic http://www.timedicer.co.uk ___ rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
[rdiff-backup-users] Intermittent connection failures
I have something like a terabyte of stuff to backup. I do it each day with more than ten rdiff-backup scripts (one for each directory). Lately I have been getting these errors: Received disconnect from nn.nn.nn.nn: 2: Timeout, your session not responding. Fatal Error: Lost connection to the remote system (nn.nn.nn.nn stands for source ip). the script is of this type: rdiff-backup --exclude-special-files --force --remote-schema ssh -i /root/.ssh/myserver.dsa %s rdiff-backup --server r...@nn.nn.nn.nn::/path/to/dir /path/to/dir 1 logfile 2 logfile I have tried different things, like - simply rerun the script - throw away rdiff-backup-data directory, then try again - like before, then use rsync, then rdiff-backup again - add ServerAliveInterval 180 to /etc/ssh/ssh_config on target and ClientAliveInterval 180 to sshd_config on source machine - add ConnectTimeout 300 to ssh_config on target machine Adjusting ssh_config seems to have no effect. These errors seem to center on some dirs and not on others. But the errors don't occur every time, which makes it hard to find the reason. Finally, here is some version information (same versions on source and target): - CentOS 5.6 (source 64-bit, target 32-bit) - rdiff-backup 1.2.8 I could check versions of dependencies, if necessary. There may be version differences because one system is 32- and the other 64-bit. One theory is that the router for my target machine (my modem is in bridge mode, so the router is owned by cable operator) plays nasty. They changed all ip's recently, and I think these errors started to appear around the same time. Probably the whole machine has been changed, the routing capabilities for my LAN changed (no more Bonjour printer sharing, etc.). Any thoughts about the reason and remedy of the rdiff-backup errors? Thanks, Jussi ___ rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki