Hi, I've got an issue since about a week and I still can't solve it after a thorough research. I've setup a rsync server on my backup host, with shares using post/pre-xfer exec options but the scripts seems not to even be called : they should write a lockfile, and write in a logfile some information about the transfer request / report. I'm using rsync through stunnel and here's the server-side configuration. If someone had an idea I'd be really glad to hear it :) Thanks use chroot = no uid = rsync gid = rsync max connections = 10 max verbosity = 10 timeout = 600 port = 8731 read only = yes numeric ids = yes munge symlinks = yes list = no fake super = yes secrets file = /snapshots/conf/rsyncd.secrets hosts deny = * log file = /snapshots/log/rsyncd.log lock file = /snapshots/tmp/rsyncd.lock refuse options = rsync-path,rsync path [myhost] path = /snapshots/data/hosts/myhost comment = Sauvegardes de myhost hosts allow = 127.0.0.1 read only = no write only = no ignore nonreadable = yes refuse options = checksum exclude from = /snapshots/conf/myhost.exclude log file = /snapshots/log/myhost.rlog pre-xfer exec = /snapshots/conf/pre-xfer.sh post-xfer exec = /snapshots/conf/post-xfer.sh auth users = myhost
On Fri, 2008-06-20 at 17:53 +0200, Lo?c wrote:> I've setup a rsync server on my backup host, with shares using > post/pre-xfer exec options but the scripts seems not to even be called : > they should write a lockfile, and write in a logfile some information > about the transfer request / report. > > I'm using rsync through stunnel and here's the server-side > configuration. If someone had an idea I'd be really glad to hear it :)Your rsync daemon configuration looks fine. ?(Incidentally, there's no point in refusing --rsync-path because it is a client option.) Make sure you are using rsync 2.6.7 or newer to support the pre/post-xfer exec parameters. If that isn't the problem, please post your client command line and the relevant parts of your stunnel configuration. Matt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/rsync/attachments/20080620/6688cf78/attachment.bin
Reasonably Related Threads
- [Bug 13207] New: rsyncd doesn't send output of failed pre-xfer exec script to client
- pre-xfer exec fails in FreeBSD
- post-xfer exec -- more juice!
- Regarding an "earlier" variant of `pre-xfer exec` [feature request and proposed patch]
- DO NOT REPLY [Bug 4303] New: pre-xfer exec prevents output redirection of invoked commands