[Cialug] rsync + SSH locking up?
Kendall Bailey
krbailey at gmail.com
Fri Nov 18 10:24:18 CST 2005
I use mediacom cable internet, and long transfers of any kind often
hang. I don't think rsync+ssh is any less reliable than wget in my
experience, and I use both quite a bit. With rsync, I use a loop and
set a timeout and keep trying until it succeeds, like so
while true ; do
rsync --timeout=45 --rsh=ssh -avz <source> <dest>
if [ $? -eq 0 ] ; then break ; fi
done
I set up an ssh-agent and use public key auth so that a password isn't
needed each time through the loop.
For simple wget, I use something like
wget -c --read-timeout=45 <url>
If something hangs for several seconds, it's been my experience that
it does not recover. I have no idea what to blame, my box, mediacom,
some intermediate router(s) or what? I can tranfer gigs around my
home network with no problems, using rsync+ssh.
Can you give more detail? Are you having trouble on a LAN or across
the internet?
Kendall
On 11/17/05, Bailey, Jonathan C <bailj0 at bp.com> wrote:
>
>
> Has anyone on the list ever had an issue with rsync + SSH where the
> connection hangs after about an hour of transfer? I've seen this issue on
> different boxes and different configs (all debian-based). Is this some sort
> of SSH setting or something else?
>
>
>
> ------------------------------
> Server (n.),
> 1. Large, extremely expensive machine that goes "Ping!". Measuring at
> least 25 cubic feet, heavy, bulky and giving of more heat then a nuclear
> power plant. It's big, it's bad, it's beautiful and makes it pretty obvious
> what happened to this year's IT-budget.
>
> Jonathan C Bailey | Elite Customer Solutions USA | Customer Care – POS |
> (888) BP-HELP-U | (630) 300-5301 x5301 | 150 W Warrenville Rd, MC 200-1011T,
> Naperville, IL
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>
>
>
More information about the Cialug
mailing list