You can configure the command-line export and import tool, ImpExpCmdTool, by setting its arguments.
Use the command-line tool in the following cases:
Use the following command-line arguments, as needed, when running the command-line tool. The options are case sensitive.
Usage:
ImpExpCmdTool [-h | -s]
ImpExpCmdTool -U <user name> -P <password>
-S <host name> [-R <port>]
-O <object store>
-E <Export | Import>
-C <file name>
[-L <log file>]
-h, --help Display this help screen.
-s, --sample Create a sample configuration file (named SampleConfig)
-U, --UserName User name for specified server
-P, --Password Password for specified server
-S, --Server Server to log in to
-R, --Port Port number for server (defaults to 7001)
-O, --ObjectStore Object store to operate on
-E, --Operation Operation to perform, valid values are Export or Import
-C, --ConfigFile The configuration file to use for the specified operation
-L, --LogFile The name of the log file to use (defaults to C:\ImpExpCmdTool.log)
Example:
ImpExpCmdTool -UserName daphneserver -Password daphneserver
-Server localhost -Port 7001
-ObjectStore os1
-Operation Export
-ConfigFile C:\ExportImportConfiguration.xml
-Log C:\ImpExpCmdTool.log
You must configure the ExportImportConfiguration.xml file (or a similar file) to point to a manifest XML.
< Configuration >
<ExportConfiguration >
< ExportManifestFileName > C:\ExportManifestSav.xml </ ExportManifestFileName >
< IncludeModifiedParentClassDefs > 1 </ IncludeModifiedParentClassDefs >
< ExportManifestFilePrefix > ImpExpSet1 </ ExportManifestFilePrefix >
< ExportFileLocation > C:\ </ ExportFileLocation >
< ContentFolder />
< LogFileName > C:\ImpExpCmdTool_020306.log </ LogFileName >
< ExportFileRollOverSize > 11 </ ExportFileRollOverSize >
< ExportSecurityPermission > 0 </ ExportSecurityPermission >
</ ExportConfiguration >
< ImportConfiguration >
< ImportOptions >
< ImportManifestFile > C:\ImpExpSet1_ExportManifest.xml </ ImportManifestFile >
< ExternalContentPath />
< LogFile > C:\ImportLog.txt </ LogFile >
< StorageLocationForImportedObjects > 0 </ StorageLocationForImportedObjects >
< StandardOptions >
< IgnoreDupErrorMsgs > 0 </ IgnoreDupErrorMsgs >
< RetryFailedImports > 0 </ RetryFailedImports >
< ImportSecurity > 0 </ ImportSecurity >
< ImportOwner > 0 </ ImportOwner >
< ImportObjectID > 1 </ ImportObjectID >
</ StandardOptions >
</ ImportOptions >
< ImportItems >
< ChoiceLists > 1 </ ChoiceLists >
< PropertyTemplates > 1 </ PropertyTemplates >
< ClassDefinitions > 1 </ ClassDefinitions >
< CustomObjects > 1 </ CustomObjects >
< Folders > 1 </ Folders >
< Documents > 1 </ Documents >
< Annotations > 1 </ Annotations >
< EventSubscriptions > 1 </ EventSubscriptions >
< EventActions > 1 </ EventActions >
< LifeCyclePolicies > 1 </ LifeCyclePolicies >
< LifeCycleActions > 1 </ LifeCycleActions >
< Relationships > 1 </ Relationships >
< SecurityPolicies > 1 </ SecurityPolicies >
< Others > 1 </ Others >
</ ImportItems >
< Scripts >
< RunType >
< PreImport />
< PostImport />
< PreSave />
< PostSave />
</ RunType >
</ Scripts >
</ ImportConfiguration >
</ Configuration >