Hi, <div><br></div><div>I have install rsync version 3.0.8 on my FreeBSD server. </div><div><br></div><div>I've set it up so that I have to connect via ssh with key based authentication.</div><div><br></div><div>The following is my rsyncd.conf file in my home directory on the server.</div>
<div><br></div><div><div>[ben-desktop]</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>use chroot = no</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>path = /home/bs/backups/ben-desktop/current</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>numeric ids = true</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>log file = /home/bs/backups/ben-desktop/rsync.log</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>list = true</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>read only = false</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>write only = false</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>post-xfer exec = /home/bs/post-xfer $RSYNC_MODULE_PATH</div>
</div><div><br></div><div>The file post-xfer file contains the following.</div><div><br></div><div><div>#!/bin/sh</div><div><br></div><div>env >> /var/log/prexfer_test.log</div><div>exit 0</div></div><div><br></div>
<div>I've added the following to the sudoers file so that the rsync daemon runs as root and can preserve the file permissions.</div><div><br></div><div>bs ALL= NOPASSWD:/usr/local/bin/rsync</div><div><br></div><div>I use the following command from my client...</div>
<div><br></div><div>rsync -avz --rsync-path="sudo rsync" -e ssh rsync_test bs@192.168.6.6::ben-desktop</div><div><br></div><div>When I run the command from my client it copies the files, keeping the permissions, but it seems that the post-xfer command is not executed.</div>
<div><br></div><div>Should it work with my configuration?</div><div><br></div><div>Thanks</div><div><br></div><div>Ben</div><div><br></div>