Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What are rsync modules?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kramer2718
Tux's lil' helper
Tux's lil' helper


Joined: 24 Mar 2006
Posts: 78

PostPosted: Fri Dec 01, 2006 4:29 am    Post subject: What are rsync modules? Reply with quote

Hi. Maybe I'm just stupid, but I can't use rsync and the man page is a bit cryptic.

From "man rsync"

Quote:
CONNECTING TO AN RSYNC SERVER OVER A REMOTE SHELL PROGRAM

...
In order to distinguish between the remote-shell user and the rsync
server user, you can use '-l user' on your remote-shell command:

rsync -av --rsh="ssh -l ssh-user" rsync-user@host::module[/path]
local-path


What the heck is "module"?

I started an rsync daemon on my box via:

Code:
/etc/init.d/rsyncd start


I thought that's all I would have to do, but according to the man page:

Quote:

rsync somehost.mydomain.com::

This would list all the anonymous rsync modules available on the host
somehost.mydomain.com. (See the following section for more details.)


When I do that I get no output, so I guess that I need to install these missing "modules" that the man page does not explain.

Any help?

Thanks, guys.
_________________
God save us from His followers.
Back to top
View user's profile Send private message
systerfrida
n00b
n00b


Joined: 01 Jun 2004
Posts: 10
Location: Stockholm, Sweden

PostPosted: Fri Dec 01, 2006 1:36 pm    Post subject: Reply with quote

Modules are like shortcuts, or aliases, for paths that you want to rsync with. They're defined in /etc/rsyncd.conf. You can use rsync without defining any modules too, just specify the path instead:

Code:

rsync user@host:/path/to/files /path/to/sync/to


If you defined a new module in /etc/rsyncd.conf like so:
Code:

# Example module

[my-rsync-module]
    path = /path/to/files
    comment = My rsync Module

then
Code:

rsync user@host::my-rsync-module /path/to/sync/to

would do the same as the first rsync-command.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum