Restoring All Databases
107
2. Click
Restore Directory Server
.
The
Restore Directory
dialog box is displayed.
3. Select the backup from the
Available Backups
list, or enter the full path to a valid backup in the
Directory
text box.
The
Available Backups
list shows all backups located in the default directory,
/var/lib/
dirsrv/slapd-
instance_name
/bak/
backup_directory
.
1
backup_directory
is the directory of
the most recent backup, in the form
serverID-YYYY_MM_DD_hhmmss
.
4. Click
OK
.
4.3.3.2. Restoring Your Database from the Command-Line
Restore databases from the command-line by using the following scripts:
• Using the
bak2db
command-line script. This script requires the server to be shut down.
• Using the
bak2db.pl
Perl script. This script works while the server is running.
4.3.3.2.1. Using the bak2db Command-Line Script
To restore the directory from the command-line, do the following:
1. If the Directory Server is running, stop it:
2
service dirsrv stop
instance
2. Open the Directory Server instance directory:
cd /usr/lib/dirsrv/slapd-
instance_name
3. Run the
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
For more information about using this script, see the
Directory Server Configuration, Command,
and File Reference
.
4.3.3.2.2. Using bak2db.pl Perl Script
To restore the directory from the command-line, do the following while the server is running:
1. Open the Directory Server instance directory:
cd /usr/lib/dirsrv/slapd-
instance_name
2. Run the
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
Summary of Contents for DIRECTORY SERVER 8.0
Page 18: ...xviii ...
Page 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Page 30: ...12 ...
Page 112: ...94 ...
Page 128: ...110 ...
Page 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Page 224: ...206 ...
Page 324: ...306 ...
Page 334: ...316 ...
Page 358: ...340 ...
Page 410: ...392 ...
Page 420: ...402 ...
Page 444: ...426 ...
Page 454: ...436 ...
Page 464: ...446 ...
Page 484: ...466 ...
Page 512: ...494 ...
Page 522: ...504 ...