oadp
restore posthooks
Run restore post-hooks.
Syntax
cpd-cli oadp restore posthooks \
[--aux-service-image-prefix=<backup-hook-image-prefix>] \
[--dry-run=true|false] \
[--hook-kind=prehook|posthook|checkpoint] \
[--include-namespaces=<project-name1,project-name2,...>] \
[--log-level=info|debug|warn|error|panic] \
[--namespace=<namespace-name>] \
[--scale-always] \
[--scale-wait-timeout=<h,m,s>] \
[--tenant-operator-namespace] \
[--values=<yaml-file-name1,yaml-file-name2,...>] \
[--verbose]
Arguments
The restore posthooks
command has no
arguments.
Options
Option | Description |
---|---|
--aux-service-image-prefix |
Specify the backup hook job image
prefix (if configurable).
|
--dry-run |
Executes a dry-run without running
the command.
|
|
Display command
help.
|
--hook-kind |
The backup hook type. By default,
backup configmap pre-hook and post-hooks are called and are used for offline backups. When the value
is "checkpoint", checkpoint backup pre-hook and post-hooks are called and are used for
non-disruptive backups.
|
--include-namespaces |
The namespaces
in which to run restore post-hooks.
|
--log-level |
The command log
level.
|
|
The namespace name in which the
utility should operate.
|
--scale-always |
Unquiesce via scale
down.
|
--scale-wait-timeout |
The scale wait timeout duration
('h' for hours, 'm' for minutes, 's' for seconds).
|
|
Restrict the scope of backup or
restore commands to tenant operand namespaces that include tenant specific Cloud Pak Foundation
Service Operators and Cloud Pak for Data Operators only.
|
|
Specify values in one or more YAML
files.
|
--verbose |
Logs include more detailed
messages.
|
Table 1: Command options
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 Best practice: Setting up installation environment variables.
- Run restore post-hooks.
-
cpd-cli oadp restore posthooks \ --aux-service-image-prefix=icr.io/cpopen/cpd \ --hook-kind=checkpoint --namespace=${PROJECT_CPD_INST_OPERANDS}
- Run restore post-hooks to investigate errors.
-
cpd-cli oadp restore posthooks \ --include-namespaces=${PROJECT_CPD_INST_OPERANDS} \ --log-level=debug \ --verbose