14
5
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 me@host.com:/datafiles/ ./
... Happy Transfer ...
... BREAK! ...
$ rsync -P me@host.com:/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.
Thanks. I didn't think this was working because it would begin listing all my files but I didn't realize that it was showing the "file transfer" which just mean noticing the file was up to date. Right were my transfer left off it picked up with real (slower) transfers. – physicsmichael – 2010-06-01T16:23:09.383
Hmm, for me
ssh -i akey.pem
is required and I can't get the-i
part to work with these commands. – isomorphismes – 2012-09-24T03:26:44.5002If you are trying to resume a large file, this options may be useful:
--partial --inplace --no-whole-file
. – Rafael Xavier – 2013-03-11T18:59:07.363@kibitzer - once it showed you the file (on remote server), how did you start the transfer again? Mine just build the list file and shows me the file and how much was uploaded. But it just hangs with no option to continue or progress output. Has the transfer started again or do I need to do something to start it? – masterninja01 – 2014-03-23T23:11:00.003
3
-l
is not necessary. It's implied by-a
– Guido – 2014-05-17T15:27:37.550