Previous Topic: Manage Site Files Using Configuration Manager

Next Topic: Automating the Backup Process Through Rules


Manage Site Files Using the Command Line Interface

In the unattended mode, you must specify which operation you want to perform and supply additional parameters to complete the operation successfully. If you do not specify any command line parameters, the application starts in interactive mode.

The command line syntax is as follows:

Export:
expimpcfg.exe -e [folderpath] [-n archivename] [-d description]
Import:
expimpcfg.exe -i [folderpath] -n archivename [-s]
Other:
expimpcfg.exe [-v|-ver|-?|-h|-help]

Parameters can be specified with a preceding ‘-‘ or ‘/’ character.

/e [folderpath] or -e [folderpath]

Specifies an export operation. If you do not specify the optional folderpath, the exported archive will be stored in the standard Export folder (specified by %AP_DATA%\Export).

/i [folderpath] or -i [folderpath]

Specifies an import operation. If you do not specify the optional folderpath, the operation looks for the site archive in the standard Export folder (specified by %AP_DATA%\Export)

/n archivename or –n archivename

Specifies the name of the archived site on which you want to perform either export or import operation.

If you specify /e, this parameter indicates the name of an archive (without extension) into which the current site files will be exported. If this parameter is omitted the application uses the default archive name "AP_Site_backup".

Note: If the target site archive already exists, it will be overwritten without notification.

If you specify /i, this parameter indicates the name of an archive (without extension) from which site files are extracted and copied to the current site folder. This parameter with its value is required for an import operation.

/d description or –d description

Supplies an additional description of the currently exported site. Use only with the /e parameter (export operation).

/s or -s

Specifies that the configured CA Automation Point services are not to be started after the import operation completes. This parameter is used only with the /i parameter (import operation). You can manually start services later using the Services dialog of Configuration Manager or by restarting the computer

/v or –v
/ver or –ver

Displays version information and exits

Note: You can view these parameter descriptions from a Windows Command Prompt window by entering one of the following commands:

expimpcfg.exe /? or -?
expimpcfg.exe /h or -h
expimpcfg.exe /help or -help

To view the status of the operation, and the status messages it generates, see the ExpImpCfg.log file.

Example

To export configuration settings to an archive named AP_BACKUP, enter the following command:

expimpcfg.exe -e -n AP_BACKUP

Return Code

If the operation ends successfully, the application returns a 0. Otherwise, it returns a 1. You can check the return code by running the expimpcfg.exe excecutable within an MS-DOS batch script (.bat), then checking the %ERRORLEVEL% variable.

For more information about the process and possible cause of failure, see the ExpImpCfg.log file in the %AP_DATA%\Logs directory.