Wayne Davison wayned at samba.org
Thu Jun 23 16:15:06 GMT 2005

On Tue, Jun 21, 2005 at 11:09:51PM -0400, sc0ri0n wrote:
> I wish a simple --log-file:<output> did exist in rsync.

The daemon can log transfers, and you can use a single-use "daemon" over
your remote-shell's connection to get daemon features in a transfer
without changing how rsync connects.  To effect this, you'd create an
rsyncd.conf file in the home dir of the transfer-user on the remote
system.  You can set a "log file" option or set a "syslog facility".
Make sure that "transfer logging" is enabled.  Create one or more
modules, as you prefer (e.g. you could create a single module with a
path of the user's home dir).  Make sure that "use chroot" is off
(unless the transfer-user is root).  Then, switch your rsync command
over to using the host::module/path syntax instead of the host:path
syntax without dropping the "-e rsh" option that you are already using.
That will make the remote rsync log the files that were transferred.


More information about the rsync mailing list