![Netscape NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR Administrator'S Manual Download Page 156](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-1-administrator/netscape-directory-server-6-1-administrator_administrators-manual_1674675156.webp)
Backing Up and Restoring Data
156
Netscape Directory Server Administrator’s Guide • August 2002
Two examples of performing an import using
db2bak
follow:
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:
1.
At the command prompt, change to:
serverRoot
/slapd-
serverID
2.
If the server is running, type the following to stop it:
./stop-slapd
3.
Change to the directory containing the database you want to back up:
cd db/
database_name
4.
Copy all of the files in the directory to a backup directory you create. Do not
use the
serverRoot
/slapd-
serverID
/bak/
directory, as the Directory Server
Console assumes the backups contained by this directory are global.
Backing Up the dse.ldif Configuration File
Directory Server automatically backs up the
dse.ldif
configuration file. When
you start your Directory Server, the directory creates a backup of the
dse.ldif
file
automatically in a file named
dse.ldif.startOK
in the
serverRoot
/slapd-
serverID
/config
directory.
NOTE
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).
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR
Page 1: ...Administrator s Guide Netscape Directory Server Version6 1 August 2002...
Page 20: ...20 Netscape Directory Server Administrator s Guide August 2002...
Page 24: ...24 Netscape Directory Server Administrator s Guide August 2002...
Page 142: ...Using Referrals 142 Netscape Directory Server Administrator s Guide August 2002...
Page 440: ...Miscellaneous Tuning Tips 440 Netscape Directory Server Administrator s Guide August 2002...
Page 442: ...442 Netscape Directory Server Administrator s Guide August 2002...
Page 478: ...PTA Plug In Syntax Examples 478 Netscape Directory Server Administrator s Guide August 2002...
Page 498: ...498 Netscape Directory Server Administrator s Guide August 2002...
Page 538: ...Examples of LDAP URLs 538 Netscape Directory Server Administrator s Guide August 2002...