From: Todd H. on
goran(a)lycos.com (Goran Ivanic) writes:
> 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?

rsync over ssh is the way to go in most cases. The most compelling
reasons against ftp are its cleartext method of credential exchange
and braindeadness with respect to interrupted transfers. You'll be
retransmitting everything if you have an issue half way through.
With rsync, this issue is avoided.

rsync -avz -e ssh /home/blah user(a)remotehost:/blah

--
Todd H.
http://www.toddh.net/
From: Guillaume Dargaud on
There's really no reason to prefer ftp over rsync, except maybe that most
browser have ftp support but not always rsync.

If you are going to have many simultaneous transfers, you may not want to do
it over ssh as it will be too CPU intensive over a fat pipe.
--
Guillaume Dargaud
http://www.gdargaud.net/Antarctica/


From: Michael Heiming on
In comp.os.linux.networking Nikhil <mnikhil(a)gmail.com>:
> Michael Heiming wrote:
>> In comp.os.linux.networking Unruh <unruh-spam(a)physics.ubc.ca>:
>>> Dave <foo(a)coo.com> 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?

Indeed unison can work in both directions at the same time,
though it's (iirc) also based on the rsync protocol it builds
some database on the first run and will use this on subsequent
runs. Then it outperforms rsync in order of magnitudes with very
large filesystems you want to sync.

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry(a)urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 25: Decreasing electron flux