Using the Command Line to Import an Archive
The following procedure shows how to import an archive (SIF file) using siebdev from the command line. You can also use the command line to do other work.
To import an archive using the siebdev command
If the archive file contains non-Workspace enabled objects, such as Table objects, then lock the projects for these objects. It is not possible to lock projects from the command line.
Use the following command to run siebdev.exe:
siebdev.exe /c tools.cfg /d Datasource /u user /p password /ws Workspace /batchimport repository_name import_mode sif_files log_file
Where:
-
/ws
refers to the Workspace name and this Workspace needs to be in an editable state for import to be successful. import_mode
determines how to handle a conflict. You can use one of the following values with it: overwrite, merge, or skip. If you useskip
and if a corresponding object does not exist in the repository, then there is no conflict and the utility imports the record. For more information, see Options to Resolve a Conflict.sif_files
specifies the name of one or more SIF files (for example:sif_file1
,sif_file2
,sif_file_n
) that contains the objects thatbatchimport
imports or the path to a folder that includes .sif files.log_file
specifies the name of the file that siebdev uses to log information.You can use the full path or the relative path to the current folder to specify the SIF file and the log file.
-
Examples of Using the Command Line to Import an Archive
The following example imports an archive. It uses the overwrite option for conflict resolution and it logs the results to the import.log file. For more information, see Options to Resolve a Conflict.
siebdev.exe /c tools.cfg /d ServerDataSrc /u SADMIN /p ******** /ws dev_sadmin_m6 /
batchimport "Siebel Repository" overwrite import1.sif,import2.sif" import.log
The following example imports all files to the
$TOOLS_HOME\objects
folder. It uses the
merge option for conflict resolution and logs the results to the
import.log
file.
siebdev.exe /c tools.cfg /d ServerDataSrc /u SADMIN /p ******** /ws dev_sadmin_m4 /
batchimport "Siebel Repository" merge $TOOLS_HOME\objects import.log
To import an archive using the siebdevcli command
Importing an Archive can also be done using siebdevcli
command line option.
Examples of using the command line to import an archive
The following example imports an archive. It uses the overwrite option
for conflict resolution and it logs the results to the
import.log
file. For more information, see
Options to Resolve a Conflict.
siebdevcli.exe /c tools.cfg /d ServerDataSrc /u SADMIN /p ******** /WS dev_sadmin_m6 /batchimport
"Siebel Repository" overwrite import1.sif,import2.sif" import.log
The following example imports all files from the
$TOOLS_HOME\objects
folder. It uses the
merge option for conflict resolution and logs the results to the
import.log
file.
siebdev.exe /c tools.cfg /d ServerDataSrc /u SADMIN /p ******** /ws dev_sadmin_m4 /
batchimport "Siebel Repository" merge $TOOLS_HOME\objects import.log