Previous Topic: export (Application Control and Management)--Export ApplicationNext Topic: migrate (Application Control and Management)--Migrate Application


import (Application Control and Management)--Import Application

Import an application

Syntax
application import <name> [<dir> | <file>]--novols ] [ user=<user> [ pwd=- ] [ --preserve_acl | --preserve_local_acl ] 
Parameters
<name>

Name of imported application

<dir>

Name of exchange directory from which the application is to be imported. The directory may be one of the following:

- directory relative to /vol/_impex
- URL with the following format 'http://<path>'

If not specified, the exchange directory name is the same as the application name.

<file>

Name of tar file relative to /vol/_impex containing the previously exported application. The archive file must be one of the following types:

- tar archive
- tar archive with gzip compression
- tar archive with bzip2 compression
user=<user>

Name of user to use for authentication purposes when importing the application from a URL

pwd=-

(Optional) Prompt for password to use for authentication purposes when importing the application from a URL. If the standard input is not a terminal device, it will not print a prompt and expect only one copy of the password on 'stdin' (this can be used for batch operations, to set the password from a file).

--novols

Do not import the application's volumes

--preserve_acl

Preserve the application ACL if it is present.

--preserve_local_acl

Preserve local principals in the application ACL.

Examples
application import my-app2 app2

Import application 'my-app2' from 'app2' directory on the impex volume.

application import my-app3

Import application 'my-app3' from 'my-app3' directory on the impex volume.

application import my-app1 app1 --novols

Import application descriptors for 'my-app1' from 'app1' directory on the impex volume.

application import my-app http://mysrv.com/myapp

Import application 'my-app' from URL 'http://mysrv.com/myapp'

application import my-app myapp.tar.bz2

Import application from bzip2 archive myapp.tar.bz2 on the impex volume.

Notes:

By default application ACL's are not preserved during import.

The “--preserve_global_acl” argument is not useful on CA AppLogic for System z® as it does not yet support external directories. Providing “--preserve_global_acl” to “application import” will produce a warning but it will otherwise be ignored.

The “mirrored=” argument is not useful on CA AppLogic for System z® as disk mirroring is not managed by the product. Providing “mirrored=” to “application migrate” will produce a warning but it will otherwise be ignored.