oadp
restore precheck
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>] \
[--exclude-checks] \
[--include-checks] \
[--ignore-warnings=true|false] \
[--insecure-skip-tls-verify=true|false]
Arguments
The oadp
restore precheck command has no arguments.
Options
Table 1: Command 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.
|
--exclude-checks |
Comma-separated list of checks to
skip.
|
|
|
Display command
help.
|
--ignore-warnings |
When set to `true`, any backups
that have warnings will not be flagged as errors during restore
precheck.
|
--include-checks |
Comma-separated list of checks to
run. Checks that are not specified are not run.
|
--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.
|
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.
- Run restore prechecks, checking only
CheckOadpOperatorCSV. -
cpd-cli oadp restore precheck \ --backup-names=zen-backup-operators,zen-backup \ --include-checks=CheckOadpOperatorCSV \ --verbose - Run restore prechecks, excluding
CheckOadpOperatorCSV. -
cpd-cli oadp restore precheck \ --backup-names=zen-backup-operators,zen-backup \ --exclude-checks=CheckOadpOperatorCSV \ --verbose