/var/lib/dirsrv/slapd-instance_name/bak. [3] By default, the backup directory name contains the name of the server instance and the time and date the backup was created (instance_name-YYYY_MM_DD_hhmmss).
db2bak command-line script. This script works when the server is running or when the server is stopped.
db2bak script, do the following:
cd /usr/lib/dirsrv/slapd-instance_name
db2bak command-line script.
db2bak /var/lib/dirsrv/slapd-instance_name/bak/instance_name-2007_04_30_16_27_56
/var/lib/dirsrv/slapd-instance_name/bak. [3] By default, the backup directory is named with the Directory Server instance name and the date of the backup (serverID-YYYY_MM_DD_hhmmss).
dse.ldif configuration file. When the Directory Server is started, the directory creates a backup of the dse.ldif file automatically in a file named dse.ldif.startOK in the /etc/dirsrv/slapd-instance_name directory.
dse.ldif file is modified, the file is first backed up to a file called dse.ldif.bak in the /etc/dirsrv/slapd-instance_name directory before the directory writes the modifications to the dse.ldif file.
/var/lib/dirsrv/slapd-instance_name/bak/backup_directory. [3]backup_directory is the directory of the most recent backup, in the form serverID-YYYY_MM_DD_hhmmss.
bak2db command-line script. This script requires the server to be shut down.
bak2db.pl Perl script. This script works while the server is running.
service dirsrv stop instance
cd /usr/lib/dirsrv/slapd-instance_name
bak2db command-line script. The bak2db script requires the full path and name of the input file.
bak2db /var/lib/dirsrv/slapd-instance_name/bak/instance_name-2007_04_30_11_48_30
cd /usr/lib/dirsrv/slapd-instance_name
bak2db.pl Perl script.
bak2db.pl -D "cn=Directory Manager" -w secret
-a /var/lib/dirsrv/slapd-instance_name/bak/instance_name-2007_04_30_11_48_30
| Option | Description |
|---|---|
| -a | Defines the full path and name of the input file. |
| -D | Specifies the DN of the administrative user. |
| -w | Specifies the password of the administrative user. |
service dirsrv stop instance
/var/lib/dirsrv/slapd-instance_name/bak archives with the bak2db script, using the -n parameter to specify the database name. For example:
bak2db /var/lib/dirsrv/slapd-instance_name/bak/backup_file-n userRoot
service dirsrv start instance
/var/lib/dirsrv/slapd-instance_name/db/log.###, then retry starting the server.
nsslapd-changelogmaxage, in the cn=changelog5,cn=config entry. For more information about this option, see the Directory Server Configuration, Command, and File Reference.
dse.ldif file in the /etc/dirsrv/slapd-instance_name directory. The dse.ldif.startOK file records a copy of the dse.ldif file at server start up. The dse.ldif.bak file contains a backup of the most recent changes to the dse.ldif file. Use the version with the most recent changes to restore the directory.
dse.ldif configuration file, do the following:
service dirsrv stop instance
dse.ldif file into the directory.
service dirsrv restart instance