Import and Export Commands

Import an existing package or application to SAP Mobile Server using the import command. Export a package or application from SAP Mobile Server using the export command.

Syntax

Note: You cannot import a package file generated from a previous version of SAP Mobile Platform.

To import an MBO package:

supadmin.bat -host hostname -port port -u username -pw password import -file archive name -d domain name

To export an MBO package:

supadmin.bat -host hostname -port port -u username -pw password export -type mbopackage -d domain name -id MBO package name -file archive name 

To import a Hybrid App package:

supadmin.bat -host hostname -port port -u username -pw password import -file archive name

To export a Hybrid App package:

supadmin.bat -host hostname -port port -u username -pw password export -type hybridapp -id Hybrid App name -file archive name 

To import an application:

supadmin.bat -host hostname -port port -u username -pw password import -file archive name

To export an application:

supadmin.bat -host hostname -port port -u username -pw password export -type application -id application name -file archive name 

Examples

Usage

The import succeeds when all the dependent resources of the import zip exist on the target server.
A successful package import requires that:
  • the package domain exists on the target server
  • the security configuration referred to by the package exists in the target domain
  • the connection referred to by the package exists in the target domain
A successful application import requires that::
  • the domain(s) that the application is assigned to exists on the target server
  • the domain(s) application connection template referred to by the application exists on the target server. If the application connection template does not exist on the target server, it is imported. You may need to change the connection and proxy settings to match the target server configuration. If the application connection template aready exists on the target server, the target server template connection and proxy settings are used.
  • the security configuration referred to by the application connection template exists in the target domain
  • the proxy endpoint with same address referred to by the application connection template exists in the target domain

A Hybrid App import has no dependencies.

The import fails when one or more of the dependent resources of the import.zip is missing on the target server.

In any of these cases an import failure leaves the import action incomplete and the package or application will not appear on SAP Mobile Server.