Networking Forums

Networking Forums > Computer Networking > Linux Networking > Question about rsync

Reply
Thread Tools Display Modes

Question about rsync

 
 
Jim T. Kirk
Guest
Posts: n/a

 
      03-19-2008, 05:10 AM
I'm trying to set up a backup/mirroring system for my home LAN. I
want all the computers to mirror certain directories to a "server"
machine using rsync.

A lot of the web sites out there explaining how to do this kind of
thing use inetd on the server to create an rsync daemon. However,
I'm not clear what the advantage is of using an rsync daemon over
just using rsync directly on the client machines with ssh as the
transport. Setting up the daemon seems to be an extra complication,
without any advantage I can discern. Yet, many of the web sites
don't even discuss the alternative, as if it were obvious that
using the daemon were the right approach.

Am I missing something?
 
Reply With Quote
 
 
 
 
Grant
Guest
Posts: n/a

 
      03-19-2008, 06:02 AM
On Wed, 19 Mar 2008 00:10:10 -0600, "Jim T. Kirk" <(E-Mail Removed)> wrote:

>I'm trying to set up a backup/mirroring system for my home LAN. I
>want all the computers to mirror certain directories to a "server"
>machine using rsync.
>
>A lot of the web sites out there explaining how to do this kind of
>thing use inetd on the server to create an rsync daemon. However,
>I'm not clear what the advantage is of using an rsync daemon over
>just using rsync directly on the client machines with ssh as the
>transport. Setting up the daemon seems to be an extra complication,
>without any advantage I can discern. Yet, many of the web sites
>don't even discuss the alternative, as if it were obvious that
>using the daemon were the right approach.


You could NFS export / mount filesystems and use rsync directly
for the localnet file transfer/backup task.

Grant.
--
http://bugsplatter.mine.nu/
 
Reply With Quote
 
Robert Harris
Guest
Posts: n/a

 
      03-19-2008, 07:41 AM
Jim T. Kirk wrote:
> I'm trying to set up a backup/mirroring system for my home LAN. I
> want all the computers to mirror certain directories to a "server"
> machine using rsync.
>
> A lot of the web sites out there explaining how to do this kind of
> thing use inetd on the server to create an rsync daemon. However,
> I'm not clear what the advantage is of using an rsync daemon over
> just using rsync directly on the client machines with ssh as the
> transport. Setting up the daemon seems to be an extra complication,
> without any advantage I can discern. Yet, many of the web sites
> don't even discuss the alternative, as if it were obvious that
> using the daemon were the right approach.
>
> Am I missing something?


You need to run a rsync daemon on the server in any case; your choice is
whether to have it running all the time (from startup) or to be invoked
by inetd when an rsync client connects.

Robert
 
Reply With Quote
 
Jack Snodgrass
Guest
Posts: n/a

 
      03-19-2008, 10:52 AM
On Wed, 19 Mar 2008 00:10:10 -0600, Jim T. Kirk wrote:

> I'm trying to set up a backup/mirroring system for my home LAN. I
> want all the computers to mirror certain directories to a "server"
> machine using rsync.
>
> A lot of the web sites out there explaining how to do this kind of
> thing use inetd on the server to create an rsync daemon. However,
> I'm not clear what the advantage is of using an rsync daemon over
> just using rsync directly on the client machines with ssh as the
> transport. Setting up the daemon seems to be an extra complication,
> without any advantage I can discern. Yet, many of the web sites
> don't even discuss the alternative, as if it were obvious that
> using the daemon were the right approach.
>
> Am I missing something?


There is overhead ( and security ) by using rsh over ssh.

If you use rsyncd, it's faster ( non-ssh ) and you can do
things like list rsync directoy resources. I think that you
can mark things as ro too. rsyncd is more for apps that have
multiple users accessing the server.

I use rsync over ssh for 99% of my stuff.

jack

--
D.A.M. - Mothers Against Dyslexia

see http://www.jacksnodgrass.com for my contact info.

jack - Grapevine/Richardson
 
Reply With Quote
 
Michael Zawrotny
Guest
Posts: n/a

 
      03-19-2008, 12:27 PM
Robert Harris <(E-Mail Removed)> wrote:
> You need to run a rsync daemon on the server in any case; your choice is
> whether to have it running all the time (from startup) or to be invoked
> by inetd when an rsync client connects.


Actually, you don't have to have rsyncd running on the server if you
use ssh as the transport and the rsync binary in the user's path. My
users routinely slog tons of data across our network without me having
to setup rsync repositories for them.


Mike

--
Michael Zawrotny
Institute of Molecular Biophysics
Florida State University | email: (E-Mail Removed)
Tallahassee, FL 32306-4380 | phone: (850) 644-0069
 
Reply With Quote
 
Robert Harris
Guest
Posts: n/a

 
      03-19-2008, 03:47 PM
Michael Zawrotny wrote:
> Robert Harris <(E-Mail Removed)> wrote:
>> You need to run a rsync daemon on the server in any case; your choice is
>> whether to have it running all the time (from startup) or to be invoked
>> by inetd when an rsync client connects.

>
> Actually, you don't have to have rsyncd running on the server if you
> use ssh as the transport and the rsync binary in the user's path. My
> users routinely slog tons of data across our network without me having
> to setup rsync repositories for them.
>
>
> Mike
>

Ah - but rsync on the server is run in daemon mode as rsyncd while it is
talking to your rsync client. The transport is the data transport; rsync
on the client figures out what needs transporting by comparing notes
with the rsync daemon on the server.

Robert
 
Reply With Quote
 
Michael Zawrotny
Guest
Posts: n/a

 
      03-19-2008, 05:27 PM
Robert Harris <(E-Mail Removed)> wrote:
> Michael Zawrotny wrote:
> > Robert Harris <(E-Mail Removed)> wrote:
> >> You need to run a rsync daemon on the server in any case; your choice is
> >> whether to have it running all the time (from startup) or to be invoked
> >> by inetd when an rsync client connects.

> >
> > Actually, you don't have to have rsyncd running on the server if you
> > use ssh as the transport and the rsync binary in the user's path. My
> > users routinely slog tons of data across our network without me having
> > to setup rsync repositories for them.
> >

> Ah - but rsync on the server is run in daemon mode as rsyncd while it is
> talking to your rsync client. The transport is the data transport; rsync
> on the client figures out what needs transporting by comparing notes
> with the rsync daemon on the server.


That's one way to do it. If you "rsync -av server::some_module ." it will
copy the contents of the defined module from rsyncd on the server to
the current directory. On the other hand, "rsync -av server:my_dir ."
will copy $HOME/my_dir and all of it's contents to the current
directory. In that case, there is no rsyncd on the server, the user
has to have login priveleges on the server and rsync has to be able to
be found in $PATH. The difference is how you specify the remote
location, one ":" or two.


Mike

--
Michael Zawrotny
Institute of Molecular Biophysics
Florida State University | email: (E-Mail Removed)
Tallahassee, FL 32306-4380 | phone: (850) 644-0069
 
Reply With Quote
 
Robert Harris
Guest
Posts: n/a

 
      03-19-2008, 07:10 PM
Michael Zawrotny wrote:
> Robert Harris <(E-Mail Removed)> wrote:
>> Michael Zawrotny wrote:
>>> Robert Harris <(E-Mail Removed)> wrote:
>>>> You need to run a rsync daemon on the server in any case; your choice is
>>>> whether to have it running all the time (from startup) or to be invoked
>>>> by inetd when an rsync client connects.
>>> Actually, you don't have to have rsyncd running on the server if you
>>> use ssh as the transport and the rsync binary in the user's path. My
>>> users routinely slog tons of data across our network without me having
>>> to setup rsync repositories for them.
>>>

>> Ah - but rsync on the server is run in daemon mode as rsyncd while it is
>> talking to your rsync client. The transport is the data transport; rsync
>> on the client figures out what needs transporting by comparing notes
>> with the rsync daemon on the server.

>
> That's one way to do it. If you "rsync -av server::some_module ." it will
> copy the contents of the defined module from rsyncd on the server to
> the current directory. On the other hand, "rsync -av server:my_dir ."
> will copy $HOME/my_dir and all of it's contents to the current
> directory. In that case, there is no rsyncd on the server, the user
> has to have login priveleges on the server and rsync has to be able to
> be found in $PATH. The difference is how you specify the remote
> location, one ":" or two.
>
>
> Mike
>

Yes, you are right.

Robert
 
Reply With Quote
 
Keith Keller
Guest
Posts: n/a

 
      03-19-2008, 07:13 PM
On 2008-03-19, Jim T. Kirk <(E-Mail Removed)> wrote:
>
> A lot of the web sites out there explaining how to do this kind of
> thing use inetd on the server to create an rsync daemon. However,
> I'm not clear what the advantage is of using an rsync daemon over
> just using rsync directly on the client machines with ssh as the
> transport.


The main advantage is hosting a public rsync repository where the
clients do not necessarily have a shell account on the server, similar
to hosting an anonymous ftp download site.

--keith


--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      03-19-2008, 09:29 PM
Robert Harris <(E-Mail Removed)> writes:

>Michael Zawrotny wrote:
>> Robert Harris <(E-Mail Removed)> wrote:
>>> You need to run a rsync daemon on the server in any case; your choice is
>>> whether to have it running all the time (from startup) or to be invoked
>>> by inetd when an rsync client connects.

>>
>> Actually, you don't have to have rsyncd running on the server if you
>> use ssh as the transport and the rsync binary in the user's path. My
>> users routinely slog tons of data across our network without me having
>> to setup rsync repositories for them.
>>
>>
>> Mike
>>

>Ah - but rsync on the server is run in daemon mode as rsyncd while it is
>talking to your rsync client. The transport is the data transport; rsync
>on the client figures out what needs transporting by comparing notes
>with the rsync daemon on the server.


No.
That is only one way you can do it.
If you do
rsync remote.machine.com:/path/to/file /local/path/
then rsync will log onto the remote machine with ssh, start up an ordinary
rsync there to talk to the local rsync. No daemon involved anywhere.



 
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
Rsync Mtek Linux Networking 21 07-25-2008 12:59 AM
How to get log file for rsync operation? Does rsync also delete remote files? Goran Ivanic Linux Networking 9 05-05-2008 04:58 PM
rsync question bastian Linux Networking 7 04-18-2007 07:30 AM
question about rsync bahoo Linux Networking 2 03-25-2007 09:40 PM
question about rsync bahoo Linux Networking 2 03-21-2007 11:54 PM



1 2 3 4 5 6 7 8 9 10 11