[Eug-lug] rsync problems

Bob Miller kbob at jogger-egg.com
Tue Mar 4 07:32:32 PST 2008


Rob Hudson wrote:

> I'm helping a friend set up a sort of backup solution.  He's got a
> co-located Linux web server, and a Linux file server in his office
> behind a firewall.  I set up an rsync script to synchronize (pull) all
> the web files down at night.  The problem is that it's dying about 25%
> of the way through.  From the log error output it appears that since
> rsync can sometimes take a bit of time, something happens to the
> network connection during the sync and drops the connection.  This is
> the closest explanation I could find:
> http://www.mail-archive.com/rsync@lists.samba.org/msg14422.html

Maybe the NAT box is dropping the connection due to inactivity.
Try enabling ssh keepalives.  On the client:

    $ echo ServerAliveInterval 300 >> ~/.ssh/config

or...

    $ man ssh_config    # (-:

-- 
Bob Miller                              K<bob>
                                        kbob at jogger-egg.com


More information about the EUGLUG mailing list