Can cygwin rsync handle temporary network outages?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Can cygwin rsync handle temporary network outages?
# 1  
Old 08-30-2012
Can cygwin rsync handle temporary network outages?

We're using Deltacopy's distribution of Cygwin Rsync (v3.0.4, I believe) to backup two large Virtualbox virtual hard drives from our work Windows 7 VM host, over the internet through Logmein Hamachi VPN, to an XP PC in my boss's basement. I have rsync running in a batch file which monitors the return error code rsync gives, and restarts the rsync command if the error code isn't 0. It works just fine. Mostly...

Occasionally the connection goes down for a few seconds up to a few minutes (I've troubleshooted the loss of the connection to my boss's home ISP disconnecting; the work internet connection is fine). Rsync will throw an error 12, then continue throwing error 10's every time the batch file tries to restart the backup, until the connection re-establishes itself, usually within three minutes, sometimes right away.

I have been looking for a way to get the rsync process to not fail but wait patiently for the connection to come back.

Here's my command:

rsync.exe -v -rlt -z -h --chmod=a=rw,Da+x --delete --progress "/cygdrive/E/VMbackups/Server2003.vdi" "ham.achi.ip.address::BU1/VMbackups/Server2003.vdi"

I found the "--timeout" switch which sets a timeout limit on I/O, but defaults to no timeout if not used. (I think...)

There's also "--contimeout", which sets a limit on how long rsync will wait to establish a connection. (Does this apply for waiting for a connection to re-establish?)

Is there anything to make rsync wait a while for a previously active but presently dropped connection to reconnect before throwing an error?
# 2  
Old 09-10-2012
I did try --timeout=600 and --contimeout=600, but neither enabled the rsync to wait through a 10-second dropout of the network connection.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Rsync Error: rsync: link_stat failed: No such file or directory (2)

I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location I am using Ansible tool synchronize module which triggers the unix rsync command as below:rsync --delay-updates -F --compress --archive --rsh=ssh... (2 Replies)
Discussion started by: mohtashims
2 Replies

2. Solaris

Temporary disable of users

HI Gurus can I temporary disable users to connect to Solaris, need help Regards (3 Replies)
Discussion started by: smazshah
3 Replies

3. UNIX for Dummies Questions & Answers

Rsync on Cygwin - Restrict user to several directories

Hi, I'm using rsync on cygwin (winXP) to sync our files between several laptops and XP (acting as a file server) For simplicity I use the same user account with different certificates over SSH. Now my question is; If a user understands the logic and modifies the rsync command, he can easily... (0 Replies)
Discussion started by: cemo
0 Replies

4. Shell Programming and Scripting

opening new instance of cygwin from withing cygwin

I'm using cygwin on win7, What I would like to do is something like this: cygstart cygwin tail -f /foo/test.log | perl -pe 's/error/\e I know I can start a new instance using either of these: mintty -e ... cygstart tail ... But neither of those open in ANSI mode, so I can't do... (0 Replies)
Discussion started by: Validatorian
0 Replies

5. UNIX for Dummies Questions & Answers

Difference between handle to the thread HANDLE and thread identifier pthread_t

This question might be silly but its confusing me a bit: What is the difference between handle to the thread HANDLE and thread identifier pthread_t? ---------- Post updated at 01:52 PM ---------- Previous update was at 01:48 PM ---------- Sorry I saw details and HANDLE is in windows and... (0 Replies)
Discussion started by: rupeshkp728
0 Replies

6. Shell Programming and Scripting

Rsync temporary files

Hi, I am looking to use rsync in a very specific way, and even though I have trawled the rsync man pages I have not succeeded in seeing a way of doing the following: The temporary files created by rsync should not be created in the destination directory. (I have used --temp-dir option to... (0 Replies)
Discussion started by: LostInTheWoods
0 Replies

7. UNIX for Dummies Questions & Answers

Ping temporary off and down

We have a sun server which when pinged temporarily responds and sometimes dont respond. Which problems may it is facing? (1 Reply)
Discussion started by: eelinker
1 Replies

8. Shell Programming and Scripting

Temporary files and rm

Hello everyone, I am creating a temporary file in my ksh by using something file filetemp=filetemp.$$ Later on in my script I write to the file $filetemp by 'cat'ing to it. Then in the script I am doing a 'less' on the file to view it. At the end of the script I issue a rm $filetemp 2>... (4 Replies)
Discussion started by: gio001
4 Replies

9. Shell Programming and Scripting

remove temporary file ?

Hi all, In the script I am creating a temporary file with process id as temp.txt.$$ I want to remove this tomporary file first from the current directory when i'll run the same script next time. Note: Every time when the script executes then it has unique process id and it'll create a... (5 Replies)
Discussion started by: varungupta
5 Replies

10. AIX

Removing temporary alias

I found a syntax for adding temporary alias to an interface: ifconfig en0 192.168.1.3 netmask 255.255.255.0 alias But I can't find a command to remove it. Could it be that I only need to add - before alias? Tnx! (1 Reply)
Discussion started by: veccinho
1 Replies
Login or Register to Ask a Question