oadp
backup-location 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 a backup storage location.
Syntax
cpd-cli oadp backup-location create <cpd-snapshot-name> \
--access-mode=ReadWrite|ReadOnly \
--bucket=<object-storage-bucket-name> \
--config=<map<key, value>> \
--provider=<backup-storage-provider-name> \
[--backup-sync-period=<h,m,s>] \
[--cacert=<certificate-bundle-path>] \
[--cpd-namespace=${PROJECT_CPD_INSTANCE}] \
[--credential=<map<key, value>>] \
[--labels=<map<label,label,...>>] \
[--log-level=info|debug|warn|error|panic] \
[--prefix=<prefix-name>] \
[--namespace=<namespace-name>] \
[--validation-frequency=<h,m,s>] \
[--verbose]
Arguments
Table 1: Command options
| Argument | Description |
|---|---|
<cpd-snapshot-name> |
The name of the backup storage location. |
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.
|
--cacert |
The certificate bundle path to use when verifying TLS connections.
|
--config |
The configuration key-value pairs.
|
--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.
|
|
|
Display command
help.
|
--labels |
Labels to apply to the backup storage location.
|
--log-level |
The command log
level.
|
--namespace |
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).
|
--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.
|
--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 backup storage location.
-
cpd-cli oadp backup-location create <cpd-snapshot-name>\ --access-mode=ReadWrite \ --bucket=<object-storage-bucket-name>] \ --config=<map<key, value>> \ --provider=aws \ --namespace=${PROJECT_CPD_INSTANCE} \ --log-level=debug \ --verbose