Gabriel CORRE
2006-May-17 09:11 UTC
rsync option for continuing event i/o errors occured on remove server
Hello, I search a way to continue processing backup event i/o errors occured on the remote server. I use rsync to make backup of files on a files-server. Recently I had a corrupted file on the files-server and rysnc crash, and don't continue to backup the rest of files. I have found the --ignore-errors rsync option but it seems only about deleting action. On backup server I use this options line (without deleting action): rsync --archive --stats \ --exclude-from=/path/to/exclude/file.exclude \ --rsync-path=/usr/bin/rsync \ --rsh=ssh \ myserver:/home . And got this error: write failed on user/path/to/corrupted/file.html : Success rsync error: error in file IO (code 11) at receiver.c(244) rsync: error writing 4092 unbuffered bytes - exiting: Broken pipe rsync error: error in rsync protocol data stream (code 12) at io.c(463) Other informations: on backup server: rsync --version rsync version 2.5.6cvs protocol version 26 Copyright (C) 1996-2002 by Andrew Tridgell and others <http://rsync.samba.org/> Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, IPv6, 64-bit system inums, 64-bit internal inums on files server: rsync --version rsync version 2.5.7 protocol version 26 Copyright (C) 1996-2002 by Andrew Tridgell and others <http://rsync.samba.org/> Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, IPv6, 64-bit system inums, 64-bit internal inums Thanks -- Gabriel CORRE gac@4js.com - Four J's Development Tools - www.4js.com
Daniel Laffien
2006-May-17 09:53 UTC
rsync option for continuing event i/o errors occured on remove server
Hi there, I do rsyncs on a buggy wireless connection and also had a similar problem. I wrapped the rsync call with a small shell script looping until the return code is 0. E.g: echo Rsync Loop running...' rc=1 while [ $rc -gt 0 ] do rsync <parameters> rc=$? done Works good for me! Best regards, Daniel Laffien Am Wed, 17 May 2006 10:53:56 +0200 hat Gabriel CORRE <gac@4js.com> geschrieben:> Hello, > > I search a way to continue processing backup event i/o errors occured on > the remote server. > > > I use rsync to make backup of files on a files-server. > Recently I had a corrupted file on the files-server and rysnc crash, > and don't continue to backup the rest of files. > > I have found the --ignore-errors rsync option but it seems only about > deleting action. > > On backup server I use this options line (without deleting action): > rsync --archive --stats \ > --exclude-from=/path/to/exclude/file.exclude \ > --rsync-path=/usr/bin/rsync \ > --rsh=ssh \ > myserver:/home . > > And got this error: > > write failed on user/path/to/corrupted/file.html : Success > rsync error: error in file IO (code 11) at receiver.c(244) > rsync: error writing 4092 unbuffered bytes - exiting: Broken pipe > rsync error: error in rsync protocol data stream (code 12) at io.c(463) > > > > > Other informations: > > on backup server: rsync --version > rsync version 2.5.6cvs protocol version 26 > Copyright (C) 1996-2002 by Andrew Tridgell and others > <http://rsync.samba.org/> > Capabilities: 64-bit files, socketpairs, hard links, symlinks, > batchfiles, > IPv6, 64-bit system inums, 64-bit internal inums > > on files server: rsync --version > rsync version 2.5.7 protocol version 26 > Copyright (C) 1996-2002 by Andrew Tridgell and others > <http://rsync.samba.org/> > Capabilities: 64-bit files, socketpairs, hard links, symlinks, > batchfiles, > IPv6, 64-bit system inums, 64-bit internal inums > > > Thanks >
John Van Essen
2006-May-18 07:41 UTC
rsync option for continuing event i/o errors occured on remove server
On Wed, 17 May 2006, Gabriel CORRE <gac@4js.com> wrote:> > Recently I had a corrupted file on the files-server and rysnc crash, > and don't continue to backup the rest of files.....> write failed on user/path/to/corrupted/file.html : Success....> rsync version 2.5.6cvs protocol version 26....> rsync version 2.5.7 protocol version 26Are you sure that the file was corrupt? You may have run out of free space, instead. That incorrect "Success" message is from an old bug where rsync was not properly reporting an "Out of Space" (disk full) condition. This was fixed in 2.6.0 (Jan 2004). Rsync is now at 2.6.8. John