Chapter 7. Command-Line Scripts
280
For information on the equivalent Perl script, see
Section 7.4.2, “cl-dump.pl (Dumps and Decodes the
Changelog)”
.
7.3.3. db2bak (Creates a Backup of a Database)
Creates a backup of the current database contents. This script can be executed while the server is still
running.
Syntax
db2bak
[
backupDirectory
]
For information on the equivalent Perl script, see
Section 7.4.3, “db2bak.pl (Creates a Backup of a
Database)”
.
7.3.4. db2ldif (Exports Database Contents to LDIF)
Exports the contents of the database to LDIF. This script can be executed while the server is still
running, except with the
-r
option. To export the replication state information, shut down the server
first, then run
db2ldif
with
-r
.
For information on the equivalent Perl script, see
Section 7.4.5, “db2ldif.pl (Exports Database Contents
to LDIF)”
.
For the shell scripts, the script runs the
ns-slapd
command-line utility with the
db2ldif
keyword.
Ellipses (...) indicate that multiple occurrences are allowed.
Syntax
db2ldif
[[ -n
backendInstance
] | [ -s
includeSuffix
]] [ [ -x
excludeSuffix
] ] [ -r ] [ -C ] [ -u ]
[ -U ] [ -m ] [ M ] [ -a
outputFile
] [ -1 ] [ -N ] [ -E ]
Options
Either the
-n
or the
-s
option must be specified. By default, the output LDIF will be stored in one file.
To specify the use of several files, use the option
-M
.
Option
Description
-1
Deletes, for reasons of backward compatibility,
the first line of the LDIF file which gives the
version of the LDIF standard.
-a
outputFile
Gives the name of the output LDIF file.
-C
Uses only the main database file.
-E
Decrypts encrypted data during export. This
option is used only if database encryption is
enabled.
-m
Sets minimal base-64 encoding.
Содержание 8.1
Страница 8: ...viii ...
Страница 14: ...xiv ...
Страница 16: ...2 ...
Страница 250: ...236 ...
Страница 334: ...320 ...
Страница 372: ...358 ...