Am 21.09.20 um 21:37 schrieb Philip Guenther:
> On Mon, 21 Sep 2020, Berthold Cogel wrote:
>> we have a cluster of LDAP servers consisting of one provider and 4
>> consumer. We're upgrading the os of the systems by proving an
>> replacement system for each of the five systems.
>> Then we stop the slapd on the system that should be replaced, dump the
>> database with slapcat, copy it to new system, switch hostname and ip of
>> both systems. We shut down the old and reboot the new system. Then we
>> slapadd the database on the new system. So far so good...
> 
> The options passed to slapadd (and maybe slapcat) matter.  In particular, 
> use (or not) of -w and -S are relevant.  Please provide more information 
> about what you did.
> 
> 
> Philip Guenther
> 

Hello Philip,

dump is done with a script that acts as a wrapper around slapcat. It
zips the dumps and discards older dumps after a configurable time.

We simply call slapcat like this:

SLAPCAT=/usr/sbin/slapcat
...
$SLAPCAT -f $SLAPD_CONFIG -b $BASE -l $BACKUP_PATH/$DUMP_FILE


For slapadd we use this one:

slapadd -f /etc/openldap/slapd.conf -b <Base> -l <Path to dump>


Regards
Berthold Cogel

Reply via email to