export-import
import create
Start an import.
Syntax
cpd-cli export-import import create <cpd-import-name> \
[--arch=<system-cpu-architecture>] \
[--backoff-limit] \
[--cpdconfig=<cpd-configuration-location>] \
[--from-export=<cpd-export-name>] \
[--from-schedule=<import-schedule-name>] \
[--instance-name=<service-instance-name>] \
[--log-level=info|debug|warn|error|panic|trace] \
[--namespace=<namespace-name>] \
--profile=<cpd-profile-name> \
[--service-type=<cpd-service-type>] \
[--values=<yaml-file-name1,yaml-file-name2,...>] \
[--verbose]
Arguments
Table 1: Command arguments
| Argument | Description |
|---|---|
<cpd-import-name> |
The name of the import to create. |
Options
Table 1: Command options
| Option | Description |
|---|---|
--arch |
The type of hardware the cluster
runs on.
|
--backoff-limit |
The number of times to retry an
export or import job before the job fails. Setting --backoff-limit=0 disables the
retry.
|
--cpdconfig |
The IBM Software Hub
configuration location. For example,
$HOME/.cpd-cli/config.
|
--from-export |
The name of the export file to
import.
|
--from-schedule |
The name of the schedule to import
from.
|
|
|
Display command
help.
|
--instance-name |
Specify the Cloud Pak for Data
service instance name.
|
--log-level |
The command log
level.
|
|
|
The namespace name in which the
utility should operate.
|
--profile |
The name of the profile that you
created to store information about an instance of Cloud Pak for Data and your credentials for the
instance.
|
--service-type |
The Cloud Pak for Data service
instance type.
|
|
|
Specify values in one or more YAML
files.
|
--verbose |
Logs include more detailed
messages.
|
Examples
Note: The following examples use the recommended installation environment variables.
It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For more information, see Setting up installation environment variables.
- Import Cloud Pak for Data data from
<cpd-export-name>in the${PROJECT_CPD_INST_OPERANDS}namespace. - The export must be completed successfully before the import can run. Only
one import job can run at a time. The completed import job must be deleted before starting a new
import.
cpd-cli export-import import create <cpd-import-name> \ --from-export=<cpd-export-name> \ --namespace=${PROJECT_CPD_INST_OPERANDS} \ --arch=${CPU_ARCH} \ --profile=${CPD_PROFILE_NAME} \ --log-level=debug \ --verbose