[Samba] sync logon scripts between PDC and BDCs

Cybionet cybionet at videotron.ca
Mon Sep 24 23:45:01 GMT 2007


Greeting Andreas,

As Tomasz says you can use rsync with crontab.

For exemple

smbrepl.sh
 #! /bin/bash
 rsync -va --delete --force /var/lib/samba/netlogon/ 
root at bdcserver:/var/lib/samba/netlogon/

In my case, I use rsync with SSH (-e "ssh") with certificate. I wrote 
doc for replication between PDC and BDC (ldap, netlogon and dns) Module 
16 - Replication entre PDC et BDC 
<http://www.cybionet.com/index.php?option=com_content&task=view&id=20&Itemid=37>.

and lauch the script with a crontab every 15 minutes.

crontab -e
*15/ * * * * /var/lib/samba/smbscripts/smbrepl.sh

Best regard,

Robert

-- 
Cybionet - Solution reseautique
http://www.cybionet.com
> Hello,
>
> we have a PDC and three BDC. Does anyone know a easy way to keep the 
> logon.bat scripts synced between this machines ?
>
> Thanks
> Andreas
>



More information about the samba mailing list