I am trying to copy a 5GB file over the internet with two Win2003 servers. The internet on ServerA occasionally drops the connection and rsync terminates with error "connection reset by peer". Is there a way to keep alive, extend timeout or auto resume transfer? I tried using the --partial but it just starts over with another partial. I tried using the --timeout=1000 but still terminates the process after 60s. I have installed cwrsync which uses rsync 3.03. Here is the current command. rsync -e "ssh" file1.x user@server: -------------- next part -------------- HTML attachment scrubbed and removed
On Wed, 2008-08-13 at 13:28 -0500, Shane Uys wrote:> I am trying to copy a 5GB file over the internet with two Win2003 > servers. The internet on ServerA occasionally drops the connection and > rsync terminates with error ?connection reset by peer?. Is there a > way to keep alive, extend timeout or auto resume transfer? I tried > using the --partial but it just starts over with another partial.--partial does allow the receiver to use the already transmitted data in the delta-transfer algorithm on the next run, avoiding the need to send it over the network again, but I guess the disk I/O of rewriting that data to the new temporary file is the problem. Try --partial --append; the --append option tells rsync to make the (correct) assumption that the destination file left by --partial matches the beginning of the source file and just append to the existing file. Matt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/rsync/attachments/20080813/e55c2635/attachment.bin
That works really well. After retesting, the --partial by itself also works. I must have overlooked it the first time. Is there any option for auto resume? I tried --timeout=1000 but it still terminates after 60s (when the internet drops). Thanks -----Original Message----- From: Matt McCutchen [mailto:matt@mattmccutchen.net] Sent: Wednesday, August 13, 2008 5:09 PM To: Shane Uys Cc: rsync@lists.samba.org Subject: Re: Rsync Auto Resume On Wed, 2008-08-13 at 13:28 -0500, Shane Uys wrote:> I am trying to copy a 5GB file over the internet with two Win2003 > servers. The internet on ServerA occasionally drops the connection and > rsync terminates with error ?connection reset by peer?. Is there a > way to keep alive, extend timeout or auto resume transfer? I tried > using the --partial but it just starts over with another partial.--partial does allow the receiver to use the already transmitted data in the delta-transfer algorithm on the next run, avoiding the need to send it over the network again, but I guess the disk I/O of rewriting that data to the new temporary file is the problem. Try --partial --append; the --append option tells rsync to make the (correct) assumption that the destination file left by --partial matches the beginning of the source file and just append to the existing file. Matt