sysvol replication in samba4?

Jeff Sadowski jeff.sadowski at gmail.com
Mon Sep 26 16:56:13 MDT 2011


On Thu, Sep 22, 2011 at 7:30 PM, Matthieu Patou <mat at samba.org> wrote:
> On 22/09/2011 15:04, simo wrote:
>>
>> On Thu, 2011-09-22 at 13:33 -0600, Jeff Sadowski wrote:
>>>
>>> I created a samba4 domain controller the other day and sysvol seems
>>> not to replicate on its own. What do I need to do to start the
>>> replication process?
>>
>> Wait until the replication protocol has been implemented.
>
> In the mean time use a rsync + csync script to do the replication for you.
>
> I can post soon the script I'm using to do this job.
>
> it's not 100% perfect but still quite ok.
>

I'd like to see your script


my script looks as follows
<----- start of script
#!/bin/bash
testmount=`mount | grep /mnt/sysvol`
if [ "${testmount}" = "" ]; then
 mount /mnt/sysvol
 sleep 5
 testmount=`mount | grep /mnt/sysvol`
 if [ "${testmount}" = "" ]; then
  echo could not mount /mnt/sysvol
  exit
 fi
fi
rsync -ra /mnt/sysvol/ /usr/local/samba/var/locks/sysvol
<-------- end of script
and I have it in crontab as follows
* * * * * /root/sync_sysvol

> --
> Matthieu Patou
> Samba Team
> http://samba.org
>
>


More information about the samba-technical mailing list