Backing Up and Restoring Data
Select the backup from the Available Backups list, or enter the full path to a
3.
valid backup in the Directory text box.
The Available Backups list shows all backups located in the default directory,
serverRoot/slapd-serverID/bak/backup_name
where
Click OK to restore your databases.
4.
Restoring Your Database From the Command Line
You can restore your databases from the command line by using the following
scripts:
•
Using the
shut down.
•
Using the
Using the bak2db Command-Line Script
To restore your directory from the command line while the server is shut down:
At the command prompt, change to the following directory:
1.
serverRoot/slapd-serverID
If the server is running, type the following to stop it:
2.
./stop-slapd
Run the
3.
For more information about using this script, refer to Netscape Directory
Server Configuration, Command, and File Reference.
Two examples of performing an import using
Windows batch file:
bak2db.bat
\usr\netscape\servers\slapd-dirserver\bak\bak_20010701103056
UNIX shell script:
bak2db
/usr/netscape/servers/slapd-dirserver/bak/bak_20010701103056
The
bak2db
158
Netscape Directory Server Administrator's Guide • December 2003
is the name of the backup file.
backup_name
command-line script. This script requires the server to be
bak2db
perl script. This script works while the server is running.
bak2db.pl
command-line script.
bak2db
script requires that you define the full path and name of the input file.
follow:
bak2db
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.2 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers