Displaying 2 results from an estimated 2 matches for "rsync_module_path".
2011 Sep 09
1
rsync over ssh with post-zfer
...following is my rsyncd.conf file in my home directory on the server.
[ben-desktop]
use chroot = no
path = /home/bs/backups/ben-desktop/current
numeric ids = true
log file = /home/bs/backups/ben-desktop/rsync.log
list = true
read only = false
write only = false
post-xfer exec = /home/bs/post-xfer $RSYNC_MODULE_PATH
The file post-xfer file contains the following.
#!/bin/sh
env >> /var/log/prexfer_test.log
exit 0
I've added the following to the sudoers file so that the rsync daemon runs
as root and can preserve the file permissions.
bs ALL= NOPASSWD:/usr/local/bin/rsync
I use the following comma...
2006 May 15
2
DO NOT REPLY [Bug 3778] New: rsync triggers ( pre/post xter scripts )
...xfer script to generate Email traps for non-zero exit status. However the
exist status is always -1
See the output of set command mailed by sendmail to check RSYNC environment
vars.
RSYNC_EXIT_STATUS=-1
RSYNC_HOST_ADDR=172.29.146.49
RSYNC_HOST_NAME=minttest.id.citistreet.org
RSYNC_MODULE_NAME=TMP
RSYNC_MODULE_PATH=/tmp/TMP
RSYNC_RAW_STATUS=-1
RSYNC_USER_NAME=''
Is this a bug or I am not using proper config file. See the config section in
rsyncd.conf
log file = /tmp/RSYNC2.8.log
[TMP]
path = /tmp/TMP
comment = /tmp/TMP
read only = false
uid = zhrumde
gid = tivoli
#pre-xfer exec = /tmp/send_ma...