oadp
restore precheck
Important: IBM Cloud Pak® for Data
Version 4.7 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.7 reaches end of support. For more information, see Upgrading IBM Software Hub in the IBM Software Hub Version 5.1 documentation.
Run validation to ensure that the OADP namespace exists, resources are available, and the backup exists before restoring a backup.
This command checks for the following issues:
- The OADP project does not exist.
- A Velero instance is not running or its pod is not healthy.
- The OADP backup storage location custom
resource is not in the
Availablestate. - The specified backup name does not exist.
- The backup did not complete successfully or has errors or warnings.
- Projects that are associated with the backup do not exist.
Syntax
cpd-cli oadp restore precheck \
--backup-names=<backup_name1, backup_name2, and so on> \
[--cacert=<certificate-bundle-path>] \
[--ignore-warnings=true|false] \
[--insecure-skip-tls-verify=true|false]
Arguments
The oadp
restore precheck command has no arguments.
Options
| Option | Description |
|---|---|
--backup-names |
A valid list of comma-separated
names of existing backups that will be validated.
|
--cacert |
The certificate bundle path to use
when verifying TLS connections.
|
--cpd-namespace |
The Cloud Pak for Data control
plane namespace in which the utility operates.
|
|
|
Display command
help.
|
--ignore-warnings |
When set to `true`, any backups
that have warnings will not be flagged as errors during restore
precheck.
|
--insecure-skip-tls-verify |
When set to 'true', the object
store's TLS certificate are not checked for validity (not recommended for
production).
|
--log-level |
The command log
level.
|
--namespace |
The namespace name in which the
utility should operate.
|
--verbose |
Logs include more detailed
messages.
|
Table 1: Command options
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.
- Run restore prechecks.
-
cpd-cli oadp restore precheck --backup-names=zen-backup-operators,zen-backup - Sample response.
-
processing request... oadp namespace: openshift-adp cpd namespace: zen Error: pre-check failed with error: namespace ibm-common-services already exists in the restore cluster and must be deleted before proceeding with restore (Status: Active)