oadp
backup-location create
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_INST_OPERANDS}] \
[--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
Table 1: Command 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.
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.
- 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_INST_OPERANDS} \ --log-level=debug \ --verbose