14 Best Practices
Contents
14.1 Backup and Restore
The administration server holds an LDAP database of information that is vital
to the management of the cash registers and the infrastructure. This informa-
tion must be backed up regularly to protect against data loss in case of storage
failure and administration errors.
It is recommended to do at least an online logical backup to a local file before
any complex reconfiguration of the system. A backup of the LDAP database
can be taken in several ways:
1. offline backup of the physical database files
2. offline logical backup of the database files with slapcat
3. online logical backup with ldapsearch
14.1.1 Offline Backup
Offline backup must be executed on the administration server itself and does
not put any load on the LDAP server. The drawback is that the LDAP server is
not available during the time of the backup.
For the physical data file backup and the slapcat backup, the LDAP server
must be stopped first with /usr/sbin/rcldap stop. The physical database
files are located in the directory /var/lib/ldap/. All files there should be
backed up for a physical data file backup.
For a logical backup (database dump), run the command
. . . . . . . . . . . . . . . . . . . . . . 137
. . . . . . . . . . . . . . . . . . . . . 137
. . . . . . . . . . . . . . . . . . . . . 138
. . . . . . . . . . . . . . . . . . . . . . . . . 138
. . . . . . . . . . . . . . . . . . . . . . . . . 139
. . . . . . . . . . . . . . . . 139
137