How to call rsync client so that is detects that server has gone away?

Donald Pearson donaldwhpearson at gmail.com
Tue Jul 12 13:15:52 MDT 2011


add "--timeout=<seconds>"

Where <seconds> is how many seconds you would like it to wait before giving
up.

On Tue, Jul 12, 2011 at 2:50 PM, Larry Irwin <mkitwrk at gmail.com> wrote:

>  Hi All,
> I have an rsync client that is not re-starting and/or timing out when the
> server processes die/go away...
> The client is rsync  version 3.0.4  protocol version 30, natively compiled
> on Debian 6, kernel 2.6.32.5-amd64.
> The server is a QNAP NAS device running rsync version 3.0.6 protocol
> version 30.
> (I can change the client version if I need to, but not the version on the
> QNAP device)
> I am trying to rsync ~700gb to the QNAP device, hopefully once per day.
> There are ~40,000,000 files, many of them rsync-snapshot hard-links.
> It takes a long time, so I'm using LVM2 snapshots to get static views of
> the data partitions.
> I need to preserve the links or the destination size will multiply by a
> factor of 6 or so...
> The command I am using on the client is:
> nice -n 19 rsync -ave "ssh -l ${LOGIN} -p ${PORT}" --links --hard-links
> --perms --times --owner --group --delete --stats
> --exclude-from=${RSHOME}/cfg/**rsyncbackup.exclude --link-dest=${LINKDEST}
> / ${LOGIN}@${IPADDRESS}:..${**DEST} 2>&1 | gzip -9 > ${LOGNAME}
> The client and the QNAP are connected on the LAN with 1Gb NIC's on Gb
> switches.
> 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.
> If not that, at least to quit and exit in a reasonable fashion...
> 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...
> Any ideas would be greatly appreciated.
> Thanks,
> Larry Irwin
> --
> Please use reply-all for most replies to avoid omitting the mailing list.
> To unsubscribe or change options: https://lists.samba.org/**
> mailman/listinfo/rsync <https://lists.samba.org/mailman/listinfo/rsync>
> Before posting, read: http://www.catb.org/~esr/faqs/**smart-questions.html<http://www.catb.org/~esr/faqs/smart-questions.html>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20110712/e8e9b5c7/attachment.html>


More information about the rsync mailing list