[Samba] Update3: easy - automated setup : Debian Wheezy withsernet samba 4.1 : sysvol replication with unison. (now with extendedattributes support )

Rowland Penny rowlandpenny at googlemail.com
Mon Mar 31 07:48:05 MDT 2014


On 31/03/14 10:39, L.P.H. van Belle wrote:
> Hai Marc,
>
> No, unison itself cant replicate the extended attributes.
> But you made a point thanks for that.
>
>> Does unison replicates extended attributes? This is required.
>> I haven't
>> used unison for a long time, but when I'm right, it's not supported.
> No, standard it does not, but you can use the copyprog  copyprogrest copyquoterem to make this work with rsync.
>
>> Bi-directional syncronisation would be nice. But how does it
>> react, if a
>> file was changed on DC A and B? Is always the newer replicated?
> The latest version is replicated, based on timestamp of the file.
> But then this happend, then there is something very wrong.
>
> i've tested this, i can update gpo on server A or B, both end up the same in folders and files.
> with only the latest versions of the timestamp.
>
>
> So that said ..  ;-)  i have updated the script.
> Now its unison with rsync and the extended attributes are also copied.
>
> so now we have it...
> Bi directional sync, with rsync and unison.
> we need rsync for the directory structure to be created,
> for some reason this didnt work with the modified unison setup.
> so its a 2 setups sync, 1 rsync 2 unison.
>
> See the updated script : https://secure.bazuin.nl/scripts/3-setup-sysvol-bidirectional-BETA.sh
>
> Beta, testers are welkom.  ;-)
>
> Thank you Marc for pointing this out.
>
> Greetz,
>
> Louis
>
>> -----Oorspronkelijk bericht-----
>> Van: Marc Muehlfeld [mailto:samba at marc-muehlfeld.de]
>> Verzonden: zondag 30 maart 2014 17:49
>> Aan: L.P.H. van Belle; samba at lists.samba.org
>> Onderwerp: Re: [Samba] Update3: easy - automated setup :
>> Debian Wheezy with sernet samba 4.1 : sysvol replication with unison.
>>
>> Hello Louis,
>>
>> Am 28.03.2014 12:09, schrieb L.P.H. van Belle:
>>> Small update since i need som testers..
>>>
>>> im trying to setup bi-directional sysvol replication.
>>> Unison has this ability.
>>> http://www.cis.upenn.edu/~bcpierce/unison/
>> Does unison replicates extended attributes? This is required.
>> I haven't
>> used unison for a long time, but when I'm right, it's not supported.
>>
>> Bi-directional syncronisation would be nice. But how does it
>> react, if a
>> file was changed on DC A and B? Is always the newer replicated? Then
>> some changes may getting lost. In that case I still would suggest, the
>> editing should only be done on one DC.
>>
>>
>> Regards,
>> Marc
>>
>>
Hi Louis, just downloaded your updated unison script, but all the 
important commands seem to be commented out.
For instance:

echo "creating public/private keys"
echo "just hit enter at all questions"
#ssh-keygen -t dsa
echo "keys are generated"

Is it supposed to be like this, if so, a large amount of the script 
could be removed, because all it will do is print to screen ;-)

Rowland


More information about the samba mailing list