Backing Up and Restoring Data > Migrating OpenLDAP: Linux to Linux
  
Version 10.0.01
Migrating OpenLDAP: Linux to Linux
On your current Linux production Portal Server
1. Log in to your Linux production Portal server as root.
2. cd /opt/openldap
3. ./sbin/slapcat -f ./etc/openldap/slapd.conf -l /tmp/ldap.ldif
This will create a dump of your entire LDAP database to the /tmp/ldap.ldif file.
4. Copy this file to your new Linux system.
On your new Linux Portal Server
1. Verify that the file called ldap.ldif has been copied to the new Linux Portal server.
2. Log in as root.
3. cd /opt/aptare/bin
4. ./openldap stop
5. Make a backup of the contents of the OpenLDAP data directory:
/opt/openldap/var/openldap-data
6. rm –f /opt/openldap/var/openldap-data/*
7. /opt/openldap/sbin/slapadd –f /opt/openldap/etc/openldap/slapd.conf –l <full_path_to ldap_ldif>
8. Verify that the database was imported successfully by executing the command:
/opt/openldap/sbin/slapcat –f /opt/openldap/etc/openldap/slapd.conf
This will print to the screen a dump of your entire LDAP database.
9. Restart the OpenLDAP service using the command:
/opt/aptare/bin/openldap start