[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Copying master slapd database to slave

>I was just wondering how I should get the contents of a master 
>slapd server to a new slave.  The two servers are _not_ identically 
>configured.  The master slapd server serves a number of databases 
>and the slave only handles one.  I've tried to simply copy all the 
>appropriate database files from one server to the other and this 
>does not seem to work.  The files transfer and the slave starts, 
>but none of the transfered data is visible.

No, that generally doesn't work.

>Can I export all the data in the master slapd server to an ldif 
>file and import it in the other database?  Or is there a better 

Sure, slapcat -n #, slapadd

>way?  I'm going to have to do this literally hundreds of times, so 
>I'm hoping to find the most efficient and reliable way to do this.

If you don't have too much data you can use the 'automatic' method I
describe in