Talk:Rsync based SysVol replication workaround: Difference between revisions

From SambaWiki
(NT ACL Reset fater each replication)
(No difference)

Revision as of 14:26, 9 April 2015

We are running 2 Samba domain controllers with rsync replication on Debian 7 (master) and Ubuntu 14.04.2 LTS (slave). The sysvol share on slave DC runs into problems after each replication. The NTACL seems to be broken. It is not possible to access the share via smb/network.

We fixed this issue by adding

samba-tool ntacl sysvolreset

command after the rsync command.

The full cron looks like:

*/5 * * * *          rsync -XAavz --delete-after --password-file=/usr/local/samba/etc/rsync-sysvol.secret rsync://sysvol-replication@{IP-of-you-PDC}/SysVol/ \
                     /path/to/your/sysvol/folder/ > /dev/null && samba-tool ntacl sysvolreset &> /dev/null