Export repository data (optimcmd -export)

Use the Export repository data command to export the data in a repository database to an export file (such as rrdb.zip or optimpod.zip). To copy a repository, use the Export repository data command to export the data from every database in the repository. Then, use the Import repository data command to import each of the resulting export files into the corresponding database in another repository.

Command structure

The following diagram indicates the structure of the command and its parameters.

Read syntax diagramSkip visual syntax diagram
>>-optimcmd--+- -export-+--+-optimpod-+--filename--------------><
             '- -e------'  '-rrdb-----'             

Input

The following information can be entered with the command.

optimcmd
The optimcmd tool.
-export or -e
The Export repository data command.
optimpod or rrdb
The databases that can be exported.
filename
The file name and path to use for the resulting export file.

Return codes

The following return codes can be received when you enter the command.

Return code Description
0 No errors.
8 The export file cannot be written to the specified location, or there was an error in exporting the database.
12 The command cannot connect with the repository.