sysvol_sync_domain
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
sysvol_sync_domain [2022/10/12 17:24] – created admin | sysvol_sync_domain [2022/10/12 18:43] (current) – admin | ||
---|---|---|---|
Line 4: | Line 4: | ||
On your Domain Controller | On your Domain Controller | ||
+ | |||
+ | Install the Rsync application | ||
+ | |||
+ | apt install rsync | ||
+ | apt install xinetd | ||
+ | |||
+ | Make sure that your RSYN_ENABLE is set to RSYNC_ENABLE=inetd in / | ||
+ | |||
+ | If you start your rsync-server through xinetd, you can use the following configuration file (/ | ||
| | ||
Line 16: | Line 25: | ||
log_on_failure += USERID | log_on_failure += USERID | ||
} | } | ||
+ | |||
+ | Create the file / | ||
+ | |||
+ | | ||
+ | path = / | ||
+ | | ||
+ | uid = root | ||
+ | gid = root | ||
+ | read only = yes | ||
+ | auth users = sysvol-replication | ||
+ | | ||
+ | |||
+ | Create a file / | ||
+ | |||
+ | | ||
+ | |||
+ | Restart xinetd. | ||
+ | |||
+ | | ||
+ | |||
+ | **Now setup this on your backup domain controllers: | ||
+ | |||
+ | Make sure, that you have identical IDs of built-in groups on all DCs. Install rsync by using your package manager or compile from source. Make sure, that you use a version that supports extended ACLs! | ||
+ | Create a password file / | ||
+ | |||
+ | | ||
+ | |||
+ | Make the file chmod 700 readable! | ||
+ | |||
+ | 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=/ | ||
+ | |||
+ | If everything goes well you can schedule a cron job on your BDC: | ||
+ | |||
+ | | ||
+ | |||
+ | and put the following in the file without the quotes: | ||
+ | |||
+ | "*/5 * * * * rsync -XAavz --delete-after --password-file=/ | ||
+ | Repeat these steps on every BDC (except your PDC Emulator!). | ||
sysvol_sync_domain.1665588286.txt.gz · Last modified: 2022/10/12 17:24 by admin