Backing Up and Restoring Data
Two examples of performing an import using
Windows batch file:
db2bak \usr\netscape\servers\slapd-dirserver\bak\bak_20010701103056
UNIX shell script:
db2bak /usr/netscape/servers/slapd-dirserver/bak/bak_20010701103056
You can specify the backup directory and output file where the server saves the
exported LDIF file. If you do not specify a directory and output file, the directory
will store the file by default in the directory where the command-line script resides.
By default, the backup file is named according to the year-month-day-hour format
(
YYYY_MM_DD_hhmmss
Backing Up a Single Database
To back up a single database:
At the command prompt, change to:
1.
serverRoot/slapd-serverID
If the server is running, type the following to stop it:
2.
./stop-slapd
Change to the directory containing the database you want to back up:
3.
cd db/
Copy all of the files in the directory to a backup directory you create. Do not
4.
use the
Console assumes the backups contained by this directory are global.
NOTE
Backing Up the dse.ldif Configuration File
Directory Server automatically backs up the
you start your Directory Server, the directory creates a backup of the
automatically in a file named
serverRoot/slapd-serverID/config
156
Netscape Directory Server Administrator's Guide • August 2002
).
database_name
serverRoot/slapd-serverID/bak/
You cannot use this backup method to back up the data contained
by databases on remote servers (the databases chained to by the
database links).
dse.ldif.startOK
follow:
db2bak
directory, as the Directory Server
configuration file. When
dse.ldif
in the
directory.
file
dse.ldif
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers