Networking Forums

Networking Forums > Computer Networking > Linux Networking > Pros and Cons of using ftp vs. rsync?

Reply
Thread Tools Display Modes

Pros and Cons of using ftp vs. rsync?

 
 
Goran Ivanic
Guest
Posts: n/a

 
      05-03-2008, 12:52 PM
Assuem I want to transfer large amounts of stuff from one server to another (through Internet).

Which method should I prefer:

ftp or rsync ?

What are the Pros and Cons?

Which is faster?

Which is more stable?

Goran
 
Reply With Quote
 
 
 
 
Dave
Guest
Posts: n/a

 
      05-03-2008, 12:56 PM
Goran Ivanic wrote:
> Assuem I want to transfer large amounts of stuff from one server to another (through Internet).
>
> Which method should I prefer:
>
> ftp or rsync ?
>
> What are the Pros and Cons?
>
> Which is faster?
>
> Which is more stable?
>
> Goran


It depends.

If you need to send a lot, and none of it exists at the far end, then
ftp will be faster. ftp just needs to transfer the files, with no
overhead checking what versions exists at each end.

My guess is ftp will be faster. It just moves the files, and does not
care whether they exist on the other end or not.

However, if a large number of files to be transfered already exist at
the far end, then rsync will be faster as it needs to transfer less data.
 
Reply With Quote
 
Robert Heller
Guest
Posts: n/a

 
      05-03-2008, 02:25 PM
At 03 May 2008 12:52:33 GMT (E-Mail Removed) (Goran Ivanic) wrote:

>
> Assuem I want to transfer large amounts of stuff from one server to another (through Internet).
>
> Which method should I prefer:
>
> ftp or rsync ?
>
> What are the Pros and Cons?
>
> Which is faster?
>
> Which is more stable?


Ftp is not secure. I would not use it to transfer large amounts of stuff
from one server to another, unless what you are doing is something like
mirroring a ftp site. If you are planing to provide a mirror to a ftp
site, you should talk to the sysadmin of the site you are mirroring.
They probably have a rsync server in place for this purpose.

Otherwise...

Using rsync over ssh (rsunc -e ssh ...) or using tar over ssh (tar czvf -
-C sourcedir files | ssh othermachine tar xzvf - -C destdir) are both
good options. I'd use the tar/ssh route if this is a new / first time
transfer. Using rsync is better if it is an update (some random subset
of files need to be transfered).

>
> Goran
>


--
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software -- Linux Installation and Administration
http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
(E-Mail Removed) -- Contract Programming: C/C++, Tcl/Tk

 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      05-03-2008, 03:33 PM
Dave <(E-Mail Removed)> writes:

>Goran Ivanic wrote:
>> Assuem I want to transfer large amounts of stuff from one server to another (through Internet).
>>
>> Which method should I prefer:
>>
>> ftp or rsync ?
>>
>> What are the Pros and Cons?
>>
>> Which is faster?
>>
>> Which is more stable?
>>
>> Goran


>It depends.


>If you need to send a lot, and none of it exists at the far end, then
>ftp will be faster. ftp just needs to transfer the files, with no
>overhead checking what versions exists at each end.


>My guess is ftp will be faster. It just moves the files, and does not
>care whether they exist on the other end or not.


On large files that is a trivial overhead. rsync can also checks if the
files transfered are the same or not. ftp does not
From man rsync
Note that rsync always verifies that each transferred file was
correctly reconstructed on the receiving side by checking its
whole-file checksum,...

>However, if a large number of files to be transfered already exist at
>the far end, then rsync will be faster as it needs to transfer less data.

 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      05-03-2008, 09:05 PM
In comp.os.linux.networking Unruh <unruh-(E-Mail Removed)>:
> Dave <(E-Mail Removed)> writes:


>>Goran Ivanic wrote:
>>> Assuem I want to transfer large amounts of stuff from one server to another (through Internet).


>>> Which method should I prefer:


>>> ftp or rsync ?

[..]

>>My guess is ftp will be faster. It just moves the files, and does not
>>care whether they exist on the other end or not.


> On large files that is a trivial overhead. rsync can also checks if the
> files transfered are the same or not. ftp does not
> From man rsync
> Note that rsync always verifies that each transferred file was
> correctly reconstructed on the receiving side by checking its
> whole-file checksum,...


I'd also take a look into 'unison', it is faster the rsync in
certain situation and its GUI might make things easier for
beginners, though you really want to use it from the shell to
take most advantages.

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 6: global warming
 
Reply With Quote
 
Dan Stromberg
Guest
Posts: n/a

 
      05-04-2008, 01:49 AM
On Sat, 03 May 2008 12:52:33 +0000, Goran Ivanic wrote:

> Assuem I want to transfer large amounts of stuff from one server to
> another (through Internet).
>
> Which method should I prefer:
>
> ftp or rsync ?
>
> What are the Pros and Cons?
>
> Which is faster?
>
> Which is more stable?
>
> Goran


http://stromberg.dnsalias.org/~strom...s-of-data.html

rsync is good at picking up where a prior transfer left off. rsync
defaults to ssh, but can use rsh or similar instead. ssh is too CPU-
intensive to get decent performance on gigabit or better networks even
with contemporary CPU's, but there are patches to openssh that take Some
of the performance hit out of it.

And as Robert said, ftp (and rsh and NFS) are not encrypted, so don't use
them to transfer anything you need to keep private (unless you combine
them with mcrypt or similar). These tools are fine for copying something
you'd be putting on a public web site anyway, for example (even without
mcrypt).

NFS is actually a pretty good performer on gigabit and better networks,
because it's able to make good use of jumbo frames. This despite NFS
giving lackluster performance on 10BaseT and 100BaseT. NFS reads are
quite a bit faster than NFS writes.

ssh (including with rsync), ftp, rsh (including with rsync) and NFS are
all pretty stable, though NFS is perhaps a little less so depending on
the implementations involved.

rsync gives OK progress information - not stellar. Modern ftp clients
like tnftp (formerly lukemftp) give good progress information. ssh and
rsh and NFS don't give progress info, but can give quite good progress
information if you combine them with a tool like http://
stromberg.dnsalias.org/~strombrg/reblock.html (there's a short list of
similar programs at the bottom of the page).



 
Reply With Quote
 
Dan Stromberg
Guest
Posts: n/a

 
      05-04-2008, 03:59 AM
On Sat, 03 May 2008 12:52:33 +0000, Goran Ivanic wrote:

> Assuem I want to transfer large amounts of stuff from one server to
> another (through Internet).
>
> Which method should I prefer:
>
> ftp or rsync ?
>
> What are the Pros and Cons?
>
> Which is faster?
>
> Which is more stable?
>
> Goran


Here's a comparison of ssh, rsh, rsync, NFS, ftp and pnetcat for such a
purpose:

http://stromberg.dnsalias.org/~dstro...omparison.html

 
Reply With Quote
 
Chris Davies
Guest
Posts: n/a

 
      05-04-2008, 02:09 PM
In comp.os.linux.misc Goran Ivanic <(E-Mail Removed)> wrote:
> Assume I want to transfer large amounts of stuff from one server to
> another (through Internet).


Either you do or you don't. It's hard enough understanding people's
questions without having unnecessary assumptions thrown about.


> Which method should I prefer:
> ftp or rsync ?


Your preference is entirely up to you. Personally, if it really was
"large amounts of stuff", I'd consider sending a tape through the post.


> What are the Pros and Cons?
> Which is faster?
> Which is more stable?


I think you probably ought to go and do your own homework, don't you?
Chris
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      05-04-2008, 06:06 PM
Dan Stromberg <(E-Mail Removed)> writes:

>On Sat, 03 May 2008 12:52:33 +0000, Goran Ivanic wrote:


>> Assuem I want to transfer large amounts of stuff from one server to
>> another (through Internet).
>>
>> Which method should I prefer:
>>
>> ftp or rsync ?
>>
>> What are the Pros and Cons?
>>
>> Which is faster?
>>
>> Which is more stable?
>>
>> Goran


>Here's a comparison of ssh, rsh, rsync, NFS, ftp and pnetcat for such a
>purpose:


>http://stromberg.dnsalias.org/~dstro...omparison.html


Using rsync on ssh, the site
http://www.psc.edu/networking/projects/hpn-ssh/
shows taht it depends on far away the other machine is. If it is on the
same network where the roundtrip times are say 100usec, then even on Gb
links the standard ssh buffer is fast enough. If the machine to which you
are transfering stuff is much further away (many 10s-100s of msec) then ssh
acts as a bottleneck. But the code on that page claims to fix that problem.

So, for stability and for verification of the transfer, it is hard to beat
rsync. ftp, nfs,... do not verify that the data received is the same as the
data transfered. Of course you can put in an extra step to verify it.


 
Reply With Quote
 
Nikhil
Guest
Posts: n/a

 
      05-04-2008, 06:33 PM
Michael Heiming wrote:
> In comp.os.linux.networking Unruh <unruh-(E-Mail Removed)>:
>> Dave <(E-Mail Removed)> writes:

>
>>> Goran Ivanic wrote:
>>>> Assuem I want to transfer large amounts of stuff from one server to another (through Internet).

>
>>>> Which method should I prefer:

>
>>>> ftp or rsync ?

> [..]
>
>>> My guess is ftp will be faster. It just moves the files, and does not
>>> care whether they exist on the other end or not.

>
>> On large files that is a trivial overhead. rsync can also checks if the
>> files transfered are the same or not. ftp does not
>> From man rsync
>> Note that rsync always verifies that each transferred file was
>> correctly reconstructed on the receiving side by checking its
>> whole-file checksum,...

>
> I'd also take a look into 'unison', it is faster the rsync in
> certain situation and its GUI might make things easier for
> beginners, though you really want to use it from the shell to
> take most advantages.
>

hey Michael,

what else unison can offer in particular what rsync cannot at this point
of time? What I understand is rsync is a one way transferr system
whereas unison can do multi-way sync of file transferrs across like
wansync/intellisync ... is that correct?
 
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
NFS vs. Samba - pros & cons? Charlie Gibbs Linux Networking 4 03-03-2008 08:18 PM
pros cons of upnp ? scott Windows Networking 0 03-29-2006 10:32 AM
UPnP On or Off Pros/Cons? MN-700 BRIAN J Broadband Hardware 1 06-28-2004 09:16 PM
ICS vs router - pros and cons? Tiny Tim Home Networking 6 12-03-2003 09:51 PM
PlusNet - the pros and cons Barry Samuels Broadband 6 09-05-2003 06:40 PM



1 2 3 4 5 6 7 8 9 10 11