X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/c4d1b2983d9bc73c107f203a1331a4014d74405a..bec617b934dc2ef90b7acd1c7ef4b5db74821e91:/rsyncd.conf.yo diff --git a/rsyncd.conf.yo b/rsyncd.conf.yo index 2027de38..665dcd3a 100644 --- a/rsyncd.conf.yo +++ b/rsyncd.conf.yo @@ -1,5 +1,5 @@ mailto(rsync-bugs@samba.org) -manpage(rsyncd.conf)(5)(10 May 2005)()() +manpage(rsyncd.conf)(5)(7 Jul 2005)()() manpagename(rsyncd.conf)(configuration file for rsync in daemon mode) manpagesynopsis() @@ -52,9 +52,6 @@ write the appropriate data, log, and lock files. You can launch it either via inetd, as a stand-alone daemon, or from an rsync client via a remote shell. If run as a stand-alone daemon then just run the command "bf(rsync --daemon)" from a suitable startup script. -If run from an rsync client via a remote shell (by specifying both the -bf(--rsh) (bf(-e)) option and daemon mode with "::" or "rsync://"), the bf(--daemon) -option is automatically passed to the remote side. When run via inetd you should add a line like this to /etc/services: @@ -457,6 +454,35 @@ of the patterns will not be compressed during transfer. The default setting is tt(*.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz) +dit(bf(pre-xfer exec), bf(post-xfer exec)) You may specify a command to be run +before and/or after the transfer. If the bf(pre-xfer exec) command fails, the +transfer is aborted before it begins. + +The following environment variables are set for both commands: + +quote(itemize( + it() bf(RSYNC_MODULE_NAME): The name of the module being accessed. + it() bf(RSYNC_MODULE_PATH): The path configured for the module. + it() bf(RSYNC_HOST_ADDR): The accessing host's IP address. + it() bf(RSYNC_HOST_NAME): The accessing host's name. + it() bf(RSYNC_USER_NAME): The accessing user's name (empty if no user). +)) + +These environment variables will also be set for the bf(post-xfer exec) +command: + +quote(itemize( + it() bf(RSYNC_EXIT_STATUS): rsync's exit value. This will be 0 for a + successful run, a positive value for an error that rsync returned + (e.g. 23=partial xfer), or a -1 if rsync failed to exit properly. + it() bf(RSYNC_RAW_STATUS): the raw exit value from waitpid(). +)) + +Even though the commands can be associated with a particular module, they +are run using the permissions of the user that started the daemon (not the +module's uid/gid setting) without any chroot restrictions (even if the +module will/has run chroot()ed). + enddit() manpagesection(AUTHENTICATION STRENGTH) @@ -476,32 +502,6 @@ encryption. Future versions of rsync may support SSL for better authentication and encryption, but that is still being investigated. -manpagesection(RUNNING AN RSYNC DAEMON OVER A REMOTE SHELL PROGRAM) - -If rsync is run with both the bf(--daemon) and bf(--rsh) (bf(-e)) options, it will -spawn an rsync daemon using a remote shell connection. Several -configuration options will not be available unless the remote user is -root (e.g. chroot, setuid/setgid, etc.). There is no need to configure -inetd or the services map to include the rsync daemon port if you run an -rsync daemon only via a remote shell program. - -ADVANCED: To run an rsync daemon out of a single-use ssh key, use the -"command=em(COMMAND)" syntax in the remote user's authorized_keys entry, -where command would be - -quote(tt(rsync --server --daemon .)) - -NOTE: rsync's argument parsing expects the trailing ".", so make sure -that it's there. If you want to use an rsyncd.conf(5)-style -configuration file other than the default, you can added a -bf(--config) option to the em(command): - -quote(tt(rsync --server --daemon --config=em(file) .)) - -Note that the "--server" here is the internal option that rsync uses to -run the remote version of rsync that it communicates with, and thus you -should not be using the bf(--server) option under normal circumstances. - manpagesection(EXAMPLES) A simple rsyncd.conf file that allow anonymous rsync to a ftp area at @@ -570,7 +570,7 @@ url(http://rsync.samba.org/)(http://rsync.samba.org/) manpagesection(VERSION) -This man page is current for version 2.6.5pre1 of rsync. +This man page is current for version 2.6.6pre1 of rsync. manpagesection(CREDITS)