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>] \
[--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).
|
|
Specify values in one or more YAML
files.
|
--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.
- Run restore post-hooks.
-
cpd-cli oadp restore posthooks \ --aux-service-image-prefix=icr.io/cpopen/cpd \ --hook-kind=checkpoint --namespace=${PROJECT_CPD_INSTANCE}
- Run restore post-hooks to investigate errors.
-
cpd-cli oadp restore posthooks \ --include-namespaces=${PROJECT_CPD_INSTANCE} \ --log-level=debug \ --verbose