Export and import platform information.
You can export business information to an external file. You can then import that file to another instance of the platform. One use of this feature is to move the entire set of resources associated with a business from one environment to another, such as from a development environment to a testing or production environment.
You can choose whether or not to include the following information:
For instructions, see How do I export business information? below.
You can export business information to an external file. You can then import that file to another instance of the platform to replicate the entire set of information. You can use this feature to move the entire set of resources associated with a business from one environment to another, such as from a development environment to a testing or production environment.
There are many configuration options, so you can determine exactly what you want to include in the export file.
The business export file includes all the core information about the business, as well as any of the optional additional information you specified.
The file has a very specific structure. It will look something like the image below:
The export file will generally include the following:
You can export site, app, or API information to an external file. You can then import that file to another instance of the platform to replicate the entire set of information. You can use this feature to move the entire set of resources and associations from one environment to another, such as from a development environment to a testing or production environment.
The import file must be a valid package file previously exported from a platform instance.
Only a Business Admin can import.
When you import a file, you can also provide an optional configuration migration properties file.
Migration properties allow for URL mapping of physical service endpoints between the source environment that the information was exported from and the target environment you're importing it to.
If the URL mapping is not specified, physical service endpoint URLs are migrated without any change. It is possible that the source environment URLs might not apply to the target environment, and in this case the migration properties file is needed.
URL mapping is done by URL prefix. The backslash character (\) is used to escape any special characters in the properties file, such as the colon that might appear in the URL.
If you import the package file without a properties file, APIs included in the package that are Managed Services in the source environment become Unmanaged Services in the target environment, unless the target environment contains SOA Software container instances with the same container key as in the source environment.
The migration properties file is used to handle the differences between the source environment and the target environment by transforming the contents of the export package to be suitable for the target environment.
Here are some examples of instances in which the migration properties file can be used:
Instances where the target API endpoint is not the same in the source environment and target environment include:
The sample file below illustrates this scenario.
#With the properties below, all target APIs with an endpoint address of #http://apihost-source-env:8900 will be imported with a URL of #http://apihost-target-env:8900, keeping the path portion the same #in both environments. migration.url.source.http\://apihost-source-env\:8900=DiscussionAPI migration.url.target.http\://apihost-target-env\:8900=DiscussionAPI
Proxy APIs are hosted in SOA Software containers. It is possible that the container key in the source environment might be different from the container key in the target environment.
It is also possible that the proxy API might be hosted in a different number of ND containers in the source environment versus the target environment. However, this is rare, because most users want to host the Proxy API in an ND cluster rather than hosting in multiple NDs.
The migration properties file allows the user to map a set of ND container keys in the source environment to an alias to which multiple target environment ND containers are also mapped. This scenario allows the proxy APIs that are exported/imported to be imported into the appropriate ND containers in the target environment.
The sample file below illustrates this scenario.
#With the properties below, source-env-container-key in the source environment #is mapped to target-env-container-key in the target environment. All proxy #services that were hosted in source-env-container-key in the export file #will be hosted in target-env-container-key in the target environment. migration.container.source.source-env-container-key=acmebroker migration.container.target.target-env-container-key=acmebroker
You can use an additional property to allow service QName matching in the migration properties file.
This property is used in cases where the databases used for package import and export include services, interfaces, and bindings with the same QName but different keys. It allows update of the existing objects based on matching QNames.
For example, if you create a physical service in both the exporting and importing databases using the same WSDL, the QNames will match, but the service keys will be different. Then, if you try to import the service from one database to another with QName matching disabled, the import process will attempt to create a new service, and will fail because duplicate QNames are not allowed.
With QName matching enabled, the import process will update the existing service, behaving exactly the same as if service keys were matching.
The sample file below illustrates use of this property in the migration properties file.
#Sets QName matching for the import environment. migration.service.qname.matching=true
You can use any text editor to create the properties file for import.