Import repository data (optimcmd -import)

Use the Import repository data command to overwrite the contents of a repository database with the data from 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--+- -import-+--+-optimpod-+--filename--------------->
             '- -i------'  '-rrdb-----'             

>--+------------------------------+----------------------------><
   |                    .-false-. |   
   '-+-dropDatabase=-+--+-true--+-'   
     '-d=------------'                

Input

The following information can be entered with the command.

optimcmd
The optimcmd tool.
-import or -i
The Import repository data command.
optimpod or rrdb
The databases that can be imported.
filename
The file name and path of the export file that you want to import.
dropDatabase or d
The drop database parameter (which is used to specify whether the specified database is to be dropped before you import the database).
true or false
Specify true to drop the specified database or false.

Return codes

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

Return code Description
0 No errors.
8 The specified export file was not found, or there was an error in importing the database.
12 The command cannot connect with the repository.