User Tools

Site Tools


sysvol_sync_domain

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sysvol_sync_domain [2022/10/12 18:15] adminsysvol_sync_domain [2022/10/12 18:43] (current) admin
Line 51: Line 51:
  
    pa$$w0rd    pa$$w0rd
 +
 +Make the file chmod 700 readable! 
  
 For replicating the SysVol folder, run the following command (--dry-run means that no modifications are actually made): For replicating the SysVol folder, run the following command (--dry-run means that no modifications are actually made):
  
-   rsync --dry-run -XAavz --delete-after --password-file=/root/.rsync-sysvol.secret rsync://sysvol-replication@{IP-of-your-PDC-Emulator}/SysVol/ /var/lib/samba/sysvol/ +   rsync --dry-run -XAavz --delete-after --password-file=/root/.rsync-sysvol.secret rsync://sysvol-replication@$yourdomaincontrollerip$/sysvol/ /var/lib/samba/sysvol/ 
 + 
 +If everything goes well you can schedule a cron job on your BDC: 
 + 
 +   crontab -
 + 
 +and put the following in the file without the quotes: 
 + 
 +  "*/5 * * * *          rsync -XAavz --delete-after --password-file=/root/.rsync-sysvol.secret rsync://sysvol-replication@$yourdomaincontrollerip$/sysvol/ /var/lib/samba/sysvol/
 + 
 + 
 +Repeat these steps on every BDC (except your PDC Emulator!). 
  
 That's all.  That's all. 
sysvol_sync_domain.1665591349.txt.gz · Last modified: 2022/10/12 18:15 by admin