oadp
dpa create
Important: IBM Cloud Pak® for Data
Version 4.6 will reach end of support (EOS) on 31 July, 2025. For more information, see the Discontinuance of service announcement for IBM Cloud Pak for Data Version 4.X.
Upgrade to IBM Software Hub Version 5.1 before IBM Cloud Pak for Data Version 4.6 reaches end of support. For more information, see Upgrading IBM Software Hub in the IBM Software Hub Version 5.1 documentation.
Create an OADP DataProtectionApplication (dpa) instance.
Syntax
cpd-cli oadp dpa create <dpa-instance-name> \
--access-mode=ReadWrite|ReadOnly \
[--backup-sync-period=<h,m,s>] \
--bucket=<object-storage-bucket-name> \
[--build-images] \
[--cacert=<certificate-bundle-path>] \
--config=<map<key, value>> \
[--cpdbr-velero-plugin-image=<cpdbr-velero-plugin-image>] \
[--cpd-namespace=<cpd-control-plane-namespace>] \
[--credential=<map<key, value>>] \
[--dry-run=true|false] \
[--enable-restic=true|false] \
[--labels=<map<label,label,...>>] \
[--log-level=info|debug|warn|error|panic] \
[--namespace=<namespace-name>] \
[--prefix=<prefix-name>] \
--provider=<backup-storage-provider-name> \
[--restic-pod-cpu-limit=<restic-pod-cpu-limit>] \
[--restic-pod-cpu-request=<restic-pod-cpu-request>] \
[--restic-pod-mem-limit=<restic-pod-mem-limit>] \
[--restic-pod-mem-request=<restic-pod-mem-request>] \
[--restic-timeout=<h,m,s>] \
[--validation-frequency=<h,m,s>] \
[--velero-pod-cpu-limit=<velero-pod-cpu-limit>] \
[--velero-pod-cpu-request=<velero-pod-cpu-request>] \
[--velero-pod-mem-limit=<velero-pod-mem-limit>] \
[--velero-pod-mem-request=<velero-pod-mem-request>] \
[--verbose] \
[--wait] \
[--wait-timeout=<h,m,s>]
Arguments
Table 1: Command arguments
| Argument | Description |
|---|---|
<dpa-instance-name> |
The name of the OADP DataProtectionApplication (dpa) instance to create. |
Options
| Option | Description |
|---|---|
--access-mode |
The access mode for the backup storage location.
|
--backup-sync-period |
Specify how often to synchronize all backups in the object storage with backup API objects in the cluster ('h' for hours, 'm' for minutes, 's' for seconds). Synchronization is disabled when the value is set to 0s.
|
--bucket |
The object storage bucket name where backups are stored.
|
--build-images |
Specify whether to deploy a registry for enabling the backup and restoration of images.
|
--cacert |
The certificate bundle path to use when verifying TLS connections.
|
--config |
The configuration key-value pairs.
|
--cpdbr-velero-plugin-image |
Specify a cpdbr-velero-plugin custom plugin image.
|
--cpd-namespace |
The Cloud Pak for Data control plane namespace in which the utility operates.
|
--credential |
The credential that is used as a key-value pair where the key is the Kubernetes secret name and the value is the secret data key name. Only one value is allowed.
|
--dry-run |
Executes a dry-run without running
the command.
|
--enable-restic |
Create a restic daemonset.
|
|
|
Display command
help.
|
--labels |
Labels to apply to the OADP DataProtectionApplication (for example, l1=v1,l2=v2).
|
--log-level |
The command log
level.
|
|
|
The namespace name in which the
utility should operate.
|
--prefix |
The prefix under which all data is stored within the bucket.
|
--provider |
The backup storage provider name (for example, aws, azure, gcp).
|
--restic-pod-cpu-limit |
Specify the CPU limit for the restic pod. A value of 0 indicates unbounded.
|
--restic-pod-cpu-request |
Specify the CPU request value for the restic pod. A value of 0 indicates unbounded.
|
--restic-pod-mem-limit |
Specify the memory limit for the restic pod. A value of 0 indicates unbounded.
|
--restic-pod-mem-request |
Specify the memory request value for the restic pod. A value of 0 indicates unbounded.
|
--restic-timeout |
Specify a restic pod timeout duration ('h' for hours, 'm' for minutes, 's' for seconds)
|
--validation-frequency |
How often to validate the backup storage location ('h' for hours, 'm' for minutes, 's' for seconds). Validation is disabled when the value is set to 0s.
|
--velero-pod-cpu-limit |
Specify a CPU limit for the Velero pod. A value of 0 indicates unbounded.
|
--velero-pod-cpu-request |
Specify a CPU request value for the Velero pod. A value of 0 indicates unbounded.
|
--velero-pod-mem-limit |
Specify a memory limit for the Velero pod. A value of 0 indicates unbounded.
|
--velero-pod-mem-request |
Specify a memory request value for the Velero pod. A value of 0 indicates unbounded.
|
--verbose |
Logs include more detailed
messages.
|
--wait |
When set to "true", wait for the
operation to complete.
|
--wait-timeout |
The wait timeout setting ('h' for
hours, 'm' for minutes, 's' for seconds).
|
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 an OADP DataProtectionApplication (dpa) instance.
-
cpd-cli oadp dpa create <dpa-instance-name> \ --access-mode=ReadWrite \ --bucket=<object-storage-bucket-name> \ --namespace=oadp-operator \ --provider=aws