export-import
schedule-export create
Create an IBM® Cloud Pak for Data schedule export.
Syntax
cpd-cli export-import schedule-export create <cpd-export-schedule-name> \
[--arch=<system-cpu-architecture>] \
[--cpdconfig=<cpd-configuration-location>] \
[--component=<cpd-export-component>] \
[--instance-name=<cpd-service-instance-name>] \
[--log-level=info|debug|warn|error|panic] \
[--namespace=<namespace-name>] \
--profile=<cpd-configuration-profile-name> \
[--schedule=<cron-job-schedule>] \
[--service-type=<cpd-service-name>] \
[--values=<yaml-file-name1,yaml-file-name2,...>] \
[--verbose]
Arguments
Table 1: Command arguments
Argument | Description |
---|---|
<cpd-export-schedule-name> |
The name of the scheduled export to create. |
Options
Option | Description |
---|---|
--arch |
Provide the system
architecture.
|
--cpdconfig |
The Cloud Pak for Data
configuration location.
|
|
The Cloud Pak for Data component
for export.
|
|
Display command
help.
|
--instance-name |
Specify the Cloud Pak for Data
service instance name.
|
--log-level |
The command log
level.
|
--namespace
|
The namespace name in which the
utility should operate.
|
--profile |
The profile-name from the Cloud
Pak for Data configuration.
|
--schedule |
Specify a job schedule in the Cron
format.
|
--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.
- Create a schedule export from Cloud Pak for Data in the
${PROJECT_CPD_INSTANCE}
namespace. -
cpd-cli export-import schedule-export create <cpd-export-schedule-name> \ --component=<cpd-export-component> \ --values=<yaml-file-name.yaml> \ --log-level=error \ --namespace=${PROJECT_CPD_INSTANCE}