add "--timeout=<seconds>"<div><br></div><div>Where <seconds> is how many seconds you would like it to wait before giving up.<br><br><div class="gmail_quote">On Tue, Jul 12, 2011 at 2:50 PM, Larry Irwin <span dir="ltr"><<a href="mailto:mkitwrk@gmail.com">mkitwrk@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> Hi All,<br>
I have an rsync client that is not re-starting and/or timing out when the server processes die/go away...<br>
The client is rsync  version 3.0.4  protocol version 30, natively compiled on Debian 6, kernel 2.6.32.5-amd64.<br>
The server is a QNAP NAS device running rsync version 3.0.6 protocol version 30.<br>
(I can change the client version if I need to, but not the version on the QNAP device)<br>
I am trying to rsync ~700gb to the QNAP device, hopefully once per day.<br>
There are ~40,000,000 files, many of them rsync-snapshot hard-links.<br>
It takes a long time, so I'm using LVM2 snapshots to get static views of the data partitions.<br>
I need to preserve the links or the destination size will multiply by a factor of 6 or so...<br>
The command I am using on the client is:<br>
nice -n 19 rsync -ave "ssh -l ${LOGIN} -p ${PORT}" --links --hard-links --perms --times --owner --group --delete --stats --exclude-from=${RSHOME}/cfg/<u></u>rsyncbackup.exclude --link-dest=${LINKDEST} / ${LOGIN}@${IPADDRESS}:..${<u></u>DEST} 2>&1 | gzip -9 > ${LOGNAME}<br>


The client and the QNAP are connected on the LAN with 1Gb NIC's on Gb switches.<br>
When/if the server's rsync processes die (for an unknown reason at this point), I'd love for the client to recognize this fact and jump-start the server processes to pick up where they left off.<br>
If not that, at least to quit and exit in a reasonable fashion...<br>
At this moment, it is 2:45pm: The rsync started at 9:00am - the server processes went away at 12:33 PM - the client processes are still running...<br>
Any ideas would be greatly appreciated.<br>
Thanks,<br>
Larry Irwin<br><font color="#888888">
-- <br>
Please use reply-all for most replies to avoid omitting the mailing list.<br>
To unsubscribe or change options: <a href="https://lists.samba.org/mailman/listinfo/rsync" target="_blank">https://lists.samba.org/<u></u>mailman/listinfo/rsync</a><br>
Before posting, read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/<u></u>smart-questions.html</a><br>
</font></blockquote></div><br></div>