Resume recursive scp transfer (with rsync?)
Posted
by vgm64
on Stack Overflow
See other posts from Stack Overflow
or by vgm64
Published on 2010-06-01T15:52:16Z
Indexed on
2010/06/01
15:53 UTC
Read the original article
Hit count: 478
I was transferring several thousand files each ~1MB via scp and my connection was broken after the first 2k files or so. I wanted to know if there was a way to resume the recursive transfer w/o starting over. Something like
$ scp -r [email protected]:/datafiles/ ./
... Happy Transfer ...
... BREAK! ...
$ rsync -P [email protected]:/datafiles/ ./
... Continue transf...
The problem is I can't seem to get the syntax correct if it is possible. Can anyone shed some light on if/how it can be done?
PS. If you specify the slash after "datafiles" in the rsync line, does that transfer the directory or its contents? I saw conflicting comments when I googled.
© Stack Overflow or respective owner