Chapter 4. Populating Directory Databases
106
1. Open the Directory Server instance directory:
cd /usr/lib/dirsrv/slapd-
instance_name
2. Run the
db2bak
command-line script.
db2bak /var/lib/dirsrv/slapd-
instance_name
/bak/
instance_name
-2007_04_30_16_27_56
For more information about using this script, see the
Directory Server Configuration, Command, and
File Reference
.
The backup directory where the server saves the backed up databases can be specified with
the script. If a directory is not specified, the backup file is stored in
/var/lib/dirsrv/
slapd-
instance_name
/bak
.
1
By default, the backup directory is named with the Directory Server
instance name and the date of the backup (
serverID-YYYY_MM_DD_hhmmss
).
4.3.2. Backing up the dse.ldif Configuration File
Directory Server automatically backs up the
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.
When the
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.
4.3.3. Restoring All Databases
The following procedures describe restoring all of the databases in the directory using the Directory
Server Console and from the command-line.
NOTE
While restoring databases, the server must be running. However, the databases will be
unavailable for processing operations during the restore.
4.3.3.1. Restoring All Databases from the Console
If the databases become corrupted, restore data from a previously generated backup using the
Directory Server Console. This process consists of stopping the server and then copying the
databases and associated index files from the backup location to the database directory.
WARNING
Restoring databases overwrites any existing database files.
To restore databases from a previously created backup, do the following:
1. In the Directory Server Console, select the
Tasks
tab.
Содержание DIRECTORY SERVER 8.0
Страница 18: ...xviii ...
Страница 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Страница 30: ...12 ...
Страница 112: ...94 ...
Страница 128: ...110 ...
Страница 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Страница 224: ...206 ...
Страница 324: ...306 ...
Страница 334: ...316 ...
Страница 358: ...340 ...
Страница 410: ...392 ...
Страница 420: ...402 ...
Страница 444: ...426 ...
Страница 454: ...436 ...
Страница 464: ...446 ...
Страница 484: ...466 ...
Страница 512: ...494 ...
Страница 522: ...504 ...