Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-12-2008, 01:10 AM
newbie
 
Posts: n/a
SFTP of SSH on linux doesn't support transfer resume?

Hi all,

It seemed that sftp of ssh on linux doesn't support transfer resume, is
there any ways to support it on linux/unix platform and can be used by
scripts?

Thanks




Reply With Quote
  #2 (permalink)  
Old 07-12-2008, 01:28 PM
Andrew Gideon
 
Posts: n/a
Re: SFTP of SSH on linux doesn't support transfer resume?

On Sat, 12 Jul 2008 09:10:48 +0800, newbie wrote:

> can be used by
> scripts?


If you're moving files from scripts, perhaps rsync [over ssh] is a
solution you should consider? It can resume, and do a lot more besides.

- Andrew
Reply With Quote
  #3 (permalink)  
Old 07-12-2008, 07:10 PM
Neo - Techpulp
 
Posts: n/a
Re: SFTP of SSH on linux doesn't support transfer resume?

On Jul 12, 6:28 pm, Andrew Gideon <c172driv...@gideon.org> wrote:
> On Sat, 12 Jul 2008 09:10:48 +0800, newbie wrote:
> > can be used by
> > scripts?

>
> If you're moving files from scripts, perhaps rsync [over ssh] is a
> solution you should consider? It can resume, and do a lot more besides.
>
> - Andrew


The following blog seems to be explaining how to resume broken
downloads using rsync.
Haven't tried myself. You can give it a try.

http://joen.dk/wordpress/?p=34

But th downside is that the server should have rsync enabled.

- Neo
Techpulp Technologies
http://www.techpulp.com/
Reply With Quote
  #4 (permalink)  
Old 07-12-2008, 11:36 PM
newbie
 
Posts: n/a
Re: SFTP of SSH on linux doesn't support transfer resume?

Hi Andrew/Neo,

I'll try it, thanks a lot.


"Neo - Techpulp" <neo.techpulp@gmail.com>
??????:e636c27c-29d4-4470-818a-d5fb32e99c8c@y38g2000hsy.googlegroups.com...
> On Jul 12, 6:28 pm, Andrew Gideon <c172driv...@gideon.org> wrote:
>> On Sat, 12 Jul 2008 09:10:48 +0800, newbie wrote:
>> > can be used by
>> > scripts?

>>
>> If you're moving files from scripts, perhaps rsync [over ssh] is a
>> solution you should consider? It can resume, and do a lot more besides.
>>
>> - Andrew

>
> The following blog seems to be explaining how to resume broken
> downloads using rsync.
> Haven't tried myself. You can give it a try.
>
> http://joen.dk/wordpress/?p=34
>
> But th downside is that the server should have rsync enabled.
>
> - Neo
> Techpulp Technologies
> http://www.techpulp.com/



Reply With Quote
  #5 (permalink)  
Old 07-13-2008, 01:07 AM
Andrew Gideon
 
Posts: n/a
Re: SFTP of SSH on linux doesn't support transfer resume?

On Sat, 12 Jul 2008 12:10:37 -0700, Neo - Techpulp wrote:

>
> The following blog seems to be explaining how to resume broken downloads
> using rsync.
> Haven't tried myself. You can give it a try.


That makes it sound like effort. Just add the --partial option, and
it'll happen.

In fact, though, the --partial option is required only to resume the file
that was being transferred at the moment of failure. Even w/o that
option set, if your transfer fails between files #4 and #5, files #1-#4
will not be sent again (unless they've been modified since their
transfer).

I use --partial all the time, BTW. No problems. It Just Works.

[...]

> But th downside is that the server should have rsync enabled.


Installed, but not "enabled", assuming that "enabled" means an rsync
daemon listening for rsync connections. I'm not recommending speaking to
an rsync daemon. Aside from anything else, this isn't secure. But rsync
can use alternate transports, and the default for this nowadays is ssh
(it used to be rsh; that 2006 blog article has out-of-date information).

If you:

rsync ... source-file-list destination-host:destination-path

then what actually occurs is:

* Local rsync opens SSH connection to destination-host as
if someone typed "ssh destination-host rsync"
* This starts rsync running at the destination-host end, with the
local and remote rsync processes speaking through the SSH
connection
* rsync stuff happens

Note that if you want to add ssh options (ie. specifying a key with -i),
this can be done with the --rsh="ssh -i ..." option to rsync.

- Andrew

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:54 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109