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 “db2bak.pl (Creates a backup of a database)”.
7.3.5 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
For information on the equivalent Perl script, see “db2ldif.pl (Exports database contents to LDIF)”.
For the shell scripts, the script runs the
Syntax
db2ldif [[
Options Either the
Table
Option | Description |
Deletes, for reasons of backward compatibility, the first line of the LDIF file which gives | |
| the version of the LDIF standard. |
|
|
Gives the name of the output LDIF file. | |
|
|
Uses only the main database file. | |
|
|
Decrypts encrypted data during export. This option is used only if database encryption is | |
| enabled. |
|
|
Sets minimal | |
|
|
Uses multiple several files for storing the output LDIF, with each instance stored in | |
| instance filename (where filename is the file name specified for |
|
|
Gives the instance to be exported. | |
|
|
Specifies that the entry IDs are not to be included in the LDIF output. The entry IDs are | |
| necessary only if the output of the db2ldif command is to be used as input to the db2index |
| command. |
|
|
Exports the information required to initialize a replica when the LDIF is imported. Using | |
| this option requires that the server be stopped first, then run the db2ldif command. |
| The LDIF file, which is created with the db2ldif command, can be imported using the |
| ldif2db command. When it is imported, if the |
| automatically initialized as a replica. |
| See “ldif2db (Import)” for information on importing an LDIF file. |
|
|
Names the suffixes to be included or the subtrees to be included if | |
|
|
Requests that the unique ID is not exported. | |
|
|
Requests that the output LDIF is not folded. | |
|
|
Names the suffixes to be excluded. | |
|
|
7.3 Shell scripts 219