modules madness / ssh regardless of daemon

tim.conway at tim.conway at
Tue Nov 20 05:40:43 EST 2001

-e ssh is for external transport.  So is the single colon syntax (defiance:auth)  Use this cmdline:
rsync -avz defiance::auth /var/www/auth
Also, I'm guessing you want the contents of auth in /var/www/auth, in 
which case you want 
rsync -avz defiance::auth /var/www
else, you'll get /var/www/auth/auth
The documentation (well written, easily read, but sometimes, the app 
doesn't obey the doc) says you could use
rsync -avz defiance::auth/ /var/www/auth
as the trailing / on a source means the contents of auth, rather than auth 
itself, but I have been screwed by that one... it does not get all of the 
contents, and with --delete, has caused me disasters.
rsync -avz defiance::auth/* /var/www/auth
will also work, if you DON'T have any .files in auth, and is handy if you 
don't own /var/www (doesn't matter if you're doing it as root).

Tim Conway
tim.conway at
Philips Semiconductor - Longmont TC
1880 Industrial Circle, Suite D
Longmont, CO 80501
Available via SameTime Connect within Philips, n9hmg on AIM
perl -e 'print pack(nnnnnnnnnnnn, 
".\n" '
"There are some who call me.... Tim?"

Brian Clark <brianj at>
Sent by: rsync-admin at
11/19/2001 10:24 AM
Please respond to Brian Clark

        To:     rsync at
        cc:     (bcc: Tim Conway/LMT/SC/PHILIPS)
        Subject:        modules madness / ssh regardless of daemon

I just installed rsync on two machines, I think I'm a complete moron,
and I need a clue bat.

The remote machine's /etc/rsyncd.conf (just for testing):

use chroot = no
log file = /var/log/rsyncd.log
pid file = /var/run/
lock file = /var/run/rsync.lock

   path = /var/www/auth
   comment = apache authentication files.
   read only = yes

Then for a test, I fired up /usr/local/bin/rsync --daemon on the
remote machine.

On the local machine, I did:

% rsync -avz -e ssh defiance:auth /var/www/auth
root at defiance's password:
receiving file list ... link_stat auth : No such file or directory
client: nothing to do

FYI, /var/www/auth on the remote machine _does_ exist.

So that obviously didn't work, but then I did this:

% rsync -avz -e ssh defiance:/var/www/auth /var/www/auth
root at defiance's password:
receiving file list ... done
created directory /var/www/auth

And it works. But this next part I don't understand.. I kill the rsync
daemon on the remote host, then I try the above command line again on
the local host and it works!? Say what?! By using ssh does it bypass
the remote daemon altogether?

Plus, `hosts access' doesn't work in my /etc/rsyncd.conf and using
rsync as a daemon through inetd or xinetd doesn't even let me make a

It's like it's not reading /etc/rsyncd.conf -- I just don't get it.

% rsync --version
rsync version 2.4.6  protocol version 24

Written by Andrew Tridgell and Paul Mackerras

 -Brian Clark | PGP is spoken here: 0xE4D0C7C8
  Please, DO NOT carbon copy me on list replies.

-------------- next part --------------
HTML attachment scrubbed and removed

More information about the rsync mailing list