export-import
import create
Create an IBM® Cloud Pak for Data import.
Syntax
cpd-cli export-import import create <cpd-import-file-name> \
[--arch=<system-cpu-architecture>] \
[--cpdconfig=<cpd-configuration-location>] \
[--from-export=<cpd-export-file-name>] \
[--from-schedule=<import-schedule-name>] \
[--instance-name=<cpd-service-instance-name>] \
[--log-level=info|debug|warn|error|panic] \
[--namespace=<namespace-name>] \
--profile=<cpd-configuration-profile-name> \
[--service-type=<cpd-service-name>] \
[--values=<yaml-file-name1,yaml-file-name2,...>] \
[--verbose]
Arguments
Table 1: Command arguments
Argument | Description |
---|---|
<cpd-import-file-name> |
The name of the import to create. |
Options
Option | Description |
---|---|
--arch |
Provide the system
architecture.
|
--cpdconfig |
The Cloud Pak for Data
configuration location.
|
--from-export |
The Cloud Pak for Data export file
name from which to import.
|
--from-schedule |
The schedule name from which to
import.
|
|
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 profile-name from the Cloud
Pak for Data configuration.
|
--service-type |
The Cloud Pak for Data service
name.
|
|
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.
Use a script to create environment variables with the correct values for your environment. For more information, see Best practice: Setting up install variables.
- Import Cloud Pak for Data data from
<cpd-export-file-name>
in the${PROJECT_CPD_INSTANCE}
namespace. - The export must be completed successfully before the import can run. Only
one import job can run at any given time. The completed import job must be deleted before starting a
new
import.
cpd-cli export-import import create <cpd-import-file-name> \ --from-export=<cpd-export-file-name> \ --namespace=${PROJECT_CPD_INSTANCE} \ --arch=$CPU_ARCH \ --profile=<cpd-configuration-profile-name> \ --log-level=debug \ --verbose