Networking Forums

Networking Forums > Computer Networking > Linux Networking > SFTP of SSH on linux doesn't support transfer resume?

Reply
Thread Tools Display Modes

SFTP of SSH on linux doesn't support transfer resume?

 
 
newbie
Guest
Posts: n/a

 
      07-12-2008, 01:10 AM
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
 
 
 
 
Andrew Gideon
Guest
Posts: n/a

 
      07-12-2008, 01:28 PM
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
 
Neo - Techpulp
Guest
Posts: n/a

 
      07-12-2008, 07:10 PM
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
 
newbie
Guest
Posts: n/a

 
      07-12-2008, 11:36 PM
Hi Andrew/Neo,

I'll try it, thanks a lot.


"Neo - Techpulp" <(E-Mail Removed)>
??????:e636c27c-29d4-4470-818a-(E-Mail Removed)...
> 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
 
Andrew Gideon
Guest
Posts: n/a

 
      07-13-2008, 01:07 AM
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

Thread Tools
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to transfer data remotely to PCs in LAN via SFTP? Ahmad Linux Networking 5 03-25-2007 10:40 AM
driver doesn't support WPA? johnny Wireless Internet 0 10-28-2006 10:08 PM
Why doesn't route support this??? Justin Todd Linux Networking 8 12-14-2005 07:02 PM
Many wireless card doesn't support Linux? strutsng@gmail.com Linux Networking 28 10-02-2005 05:21 AM
Many wireless card doesn't support Linux? strutsng@gmail.com Wireless Internet 26 10-02-2005 05:21 AM



1 2 3 4 5 6 7 8 9 10 11