Shell Scripts
260 Red Hat Directory Server Configuration, Command, and File Reference • May 2005
For information on the equivalent Perl script, see “bak2db.pl (Restore database
from backup),” on page 272. For more information on restoring databases, see
chapter 4, “Populating Directory Databases,” in the Red Hat Directory Server
Administrator’s Guide. For more information on using filesystem replica
initialization, see chapter 8, “Managing Replication,” in the Red Hat Directory
Server Administrator’s Guide.
db2bak (Create backup of database)
Creates a backup of the current database contents. This script can be executed
while the server is still running.
Syntax
For information on the equivalent Perl script, refer to “db2bak.pl (Create backup
of database),” on page 273.
db2ldif (Export database contents to LDIF)
Exports the contents of the database to LDIF. This script can be executed while the
server is still running.
For information on the equivalent Perl script, see “db2ldif.pl (Export database
contents to LDIF),” on page 275.
For the shell scripts, the script runs the
ns-slapd
command-line utility with the
ldif2db
keyword. The
*
indicates that multiple occurrences are allowed.
Syntax
Shell script: db2bak [backupDirectory]
Shell script: db2ldif {-n backendInstance}* | {-s includeSuffix}*
[{-x excludeSuffix}*] [-r] [-C] [-u] [-U] [-m]
[M] [-a outputFile] [-1] [-N] [-E]