Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-19-2008, 07:10 AM
Jim T. Kirk
 
Posts: n/a
Question about rsync

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
  #2 (permalink)  
Old 03-19-2008, 08:02 AM
Grant
 
Posts: n/a
Re: Question about rsync

On Wed, 19 Mar 2008 00:10:10 -0600, "Jim T. Kirk" <captain@starshipenterprise.com> 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
  #3 (permalink)  
Old 03-19-2008, 09:41 AM
Robert Harris
 
Posts: n/a
Re: Question about rsync

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
  #4 (permalink)  
Old 03-19-2008, 12:52 PM
Jack Snodgrass
 
Posts: n/a
Re: Question about rsync

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
  #5 (permalink)  
Old 03-19-2008, 02:27 PM
Michael Zawrotny
 
Posts: n/a
Re: Question about rsync

Robert Harris <robert.f.harris@blueyonder.co.uk> 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: zawrotny@sb.fsu.edu
Tallahassee, FL 32306-4380 | phone: (850) 644-0069
Reply With Quote
  #6 (permalink)  
Old 03-19-2008, 05:47 PM
Robert Harris
 
Posts: n/a
Re: Question about rsync

Michael Zawrotny wrote:
> Robert Harris <robert.f.harris@blueyonder.co.uk> 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
  #7 (permalink)  
Old 03-19-2008, 07:27 PM
Michael Zawrotny
 
Posts: n/a
Re: Question about rsync

Robert Harris <robert.f.harris@blueyonder.co.uk> wrote:
> Michael Zawrotny wrote:
> > Robert Harris <robert.f.harris@blueyonder.co.uk> 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: zawrotny@sb.fsu.edu
Tallahassee, FL 32306-4380 | phone: (850) 644-0069
Reply With Quote
  #8 (permalink)  
Old 03-19-2008, 09:10 PM
Robert Harris
 
Posts: n/a
Re: Question about rsync

Michael Zawrotny wrote:
> Robert Harris <robert.f.harris@blueyonder.co.uk> wrote:
>> Michael Zawrotny wrote:
>>> Robert Harris <robert.f.harris@blueyonder.co.uk> 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
  #9 (permalink)  
Old 03-19-2008, 09:13 PM
Keith Keller
 
Posts: n/a
Re: Question about rsync

On 2008-03-19, Jim T. Kirk <captain@starshipenterprise.com> 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-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

Reply With Quote
  #10 (permalink)  
Old 03-19-2008, 11:29 PM
Unruh
 
Posts: n/a
Re: Question about rsync

Robert Harris <robert.f.harris@blueyonder.co.uk> writes:

>Michael Zawrotny wrote:
>> Robert Harris <robert.f.harris@blueyonder.co.uk> 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

  { 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 11:40 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


Sponsors:
Mortgage Calculator | Lingerie | Problem Mortgage | Gift Ideas | Debt Consolidation



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 110 111 112 113 114