You're looking at an NFS issue. Rsync doesn't apply timeouts to filesystem access... it treats it like connection establishment. If you were doing it over ssh, it wouldn't count the time for ssh to establish(or return an error) in the timeout time. I can't say for certain on the rsync internal transport - my guess would be that timeout applies even to establishing the TCP session, there. Once the stream is established, timeout counts. I don't think it ever counts in a local->local transfer. By the way, with NFS mounts, add the -W, as it's already going to have to read the whole file over the network, and might as well just read and write it in one step... or does it now reliably notice that a filesystem is NFS and force -W? I hope not, as fast local NFS and slow WAN would probably still be better off using the rsync algorithm.
Tim Conway Unix System Administration Contractor - IBM Global Services desk:3032734776 [EMAIL PROTECTED] "gianluca gattelli" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 03/31/2004 05:34 AM To [EMAIL PROTECTED] cc Subject Timeout question Hi. I've got 2 Fedora Linux (a Master and a Slave) with RSYNC-2.5.7. I need to keep Master synchronized every 5 minutes (mounting a remote directory with NFS on Slave). It runs correctly. To simulate a problem, I try to disconnect the lan cable. From the shell of Slave: rsync -a -v --timeout=10 --delete /mnt/master/ /local/slave I expect that the process will end after 10 seconds, but it seems frozen. Then, if I reconnect the lan cable, this message is shown: rsync: writefd_unbuffered failed to write 424 bytes: phase "unknown": Broken pipe rsync error: error in rsync protocol data stream (code 12) at io.c(515) Why the "--timeout" option doesn't work in these conditions? Thank you in advance. Bye G. ************************************************************************************************** The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies. ** eSafe scanned this email for viruses, vandals and malicious content. ** ************************************************************************************************** -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html