slapadd -l
backupfile
where
backupfile
is the file created by
slapcat
.
3
Start the LDAP server with
rcldap start
Procedure 15.2
Restoring an Online Backup
To restore an online backup, the LDAP server must be running.
1
In case the LDAP database has been corrupted, remove the database files in
/var/lib/ldap/
before restoring the online backup. The LDAP server is
able to run with an empty database.
2
Restore the backup file taken with
ldapsearch
with either
ldapadd -x -D
adminDN
-w
adminPassword
-H ldap://
LDAPServer
-f
backupfile
or
ldapadd -x -D
adminDN
-w
adminPassword
-H ldaps://
LDAPServer
-f
backupfile
(for secure LDAP communication with SSL).
196
SUSE Linux Enterprise Point of Service Guide