SystemPackage - exportSystemPackage
SystemPackage - exportSystemPackage
Description :
Deprecated do not use! Instead use exportObject
This command exports a system package into an XML file. It also exports any other additional files that the system package requires.
As input, this command requires a handle (DBKey) to the system package you want to export. You can get this DBKey by using the command SystemPackage : listSystemPackageProps .
This command generates a mapping file (mapping.xml) in the target export directory. When you import this system package (using the importSystemPackage command), you use this mapping file to resolve conflicts for system package types.
Return type : java.lang.Void
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
packageKey | String | DB Key of the system package you want to export. |
targetLocation | String | Target directory to which you want to export the system package. |
Example
This example shows how to export a system package to an XML file.
Script
# System package DB Key
SYSPACK_DB_KEY = "DBKey:SSystemPackageKey:1"
# Destination directory for export.This path is an NSH location where you want to to store the export. This example contains both remote and local export paths.Local exports to a path on your client machine. Remote exports to a server in the servers list.
LOCAL_EXPORT_PATH =/c/export
REMOTE_EXPORT_PATH=//somemachine/tmp/exports/pkg1
RESULT=`blcli SystemPackage exportSystemPackage $SYSPACK_DB_KEY $LOCAL_EXPORT_PATH`
RESULT=`blcli SystemPackage exportSystemPackage $SYSPACK_DB_KEY $REMOTE_EXPORT_PATH`