Hi, I would like to know which the best way to replicate Sysvol between my DC Samba 4 is with Rsync/Osync, as per the article below? https://wiki.samba.org/index.php/Bidirectional_Rsync/osync_based_SysVol_replication_workaround I have 3 Samba 4 DC. Regards, M?rcio Bacci
Hi, I have opted to replicate Sysvol with a simple script, as follows: rsync ---dry-run -XAavz --delete-after -e 'ssh -p 25000' /var/lib/samba/sysvol/empresa.com.br/* root at samba4-dc2 :/var/lib/samba/sysvol/empresa.com.br Is there a problem doing this way? Regards, M?rcio Bacci Em qui, 15 de ago de 2019 ?s 17:26, Marcio Demetrio Bacci < marciobacci at gmail.com> escreveu:> Hi, > > I would like to know which the best way to replicate Sysvol between my DC > Samba 4 is with Rsync/Osync, as per the article below? > > > https://wiki.samba.org/index.php/Bidirectional_Rsync/osync_based_SysVol_replication_workaround > > I have 3 Samba 4 DC. > > Regards, > > M?rcio Bacci >
On 16/08/2019 15:41, Marcio Demetrio Bacci via samba wrote:> Hi, > > I have opted to replicate Sysvol with a simple script, as follows: > > rsync ---dry-run -XAavz --delete-after -e 'ssh -p 25000' > /var/lib/samba/sysvol/empresa.com.br/* root at samba4-dc2 > :/var/lib/samba/sysvol/empresa.com.br > > Is there a problem doing this way? >One, possibly two ;-) It wont actually do anything because of '--dry-run' and you will also have to sync 'idmap.ldb' between DCs Rowland
On 16/08/2019 17:56, Marcio Demetrio Bacci wrote:> Hi, > > >It wont actually do anything because of '--dry-run' and you will also > OK, I posted the wrong command, forgot to take the "--dry-run", sorry. > > >have to sync 'idmap.ldb' between DCs > Sorry again, I didn't undestand how to do idmap.ldb between DCs. > > Can I sync?/var/lib/samba/private/idmap.ldb with rsync too? >No, see here: https://wiki.samba.org/index.php/Joining_a_Samba_DC_to_an_Existing_Active_Directory#Built-in_User_.26_Group_ID_Mappings Rowland
Hi, I have followed the guidelines outlined in the article: https://wiki.samba.org/index.php/Joining_a_Samba_DC_to_an_Existing_Active_Directory#Built-in_User_.26_Group_ID_Mappings . I had a doubt: When I ran the tdbbackup -s .bak command idmap.ldb which is 2MB generated a 720k-sized idmap.ldb.bak file. I have stopped the samba service on CD 2, replaced the idmap.ldb file with idmap.ldb.bak, renamed .bak to .ldb and reset Sysvol, then restarted the samba-ad-dc service. However the 2 Samba 4 idmap.ldb files (DC1 and DC2) were different in size. This is normal? Regards, M?rcio Bacci Em sex, 16 de ago de 2019 ?s 14:15, Rowland penny via samba < samba at lists.samba.org> escreveu:> On 16/08/2019 17:56, Marcio Demetrio Bacci wrote: > > Hi, > > > > >It wont actually do anything because of '--dry-run' and you will also > > OK, I posted the wrong command, forgot to take the "--dry-run", sorry. > > > > >have to sync 'idmap.ldb' between DCs > > Sorry again, I didn't undestand how to do idmap.ldb between DCs. > > > > Can I sync /var/lib/samba/private/idmap.ldb with rsync too? > > > No, see here: > > > https://wiki.samba.org/index.php/Joining_a_Samba_DC_to_an_Existing_Active_Directory#Built-in_User_.26_Group_ID_Mappings > > Rowland > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >