
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Other File-Sharing Methods
|
403
And that is most of what you need to know to set up both anonymous and authenti-
cated rsync services. See the rsync(8) and rsyncd.conf(5) manpages for full lists of
command-line and configuration-file options, including a couple I haven’t covered
here that can be used to customize log messages.
Using rsync to connect to an rsync server
Lest I forget, I haven’t yet shown how to connect to an rsync server as a client. This is
a simple matter of syntax: when specifying the remote host, use a double colon
rather than a single colon, and use a path relative to the desired module, not an abso-
lute path.
For example, to revisit the scenario in Example 11-11 in which your client system is
called near and the remote system is called far, suppose you wish to retrieve the file
newstuff.tgz and that far is running rsync in daemon mode. Suppose further that you
can’t remember the name of the module on far in which new files are stored. First,
you can query far for a list of its available modules, as shown in Example 11-15.
Not coincidentally, these are the same modules we set up in Examples
11-12 and 11-13, and as I predicted in the previous section, the mod-
ule audiofreakz is omitted.
Aha, the directory you need is named public. Assuming you’re right, the command ...