oadp
restore preworkloadhooks
Important: IBM Cloud Pak® for Data
Version 4.6 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.6 reaches end of support. For more information, see Upgrading IBM Software Hub in the IBM Software Hub Version 5.1 documentation.
Run restore pre-workload hooks.
Syntax
cpd-cli oadp restore preworkloadhooks \
[--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-wait-timeout=<h,m,s>] \
[--values=<yaml-file-name1,yaml-file-name2,...>] \
[--verbose]
Arguments
The restore preworkloadhooks 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 pre-workload hooks.
|
--log-level |
The command log
level.
|
|
|
The namespace name in which the
utility should operate.
|
--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 pre-workload hooks.
-
cpd-cli oadp restore preworkloadhooks \ --aux-service-image-prefix=icr.io/cpopen/cpd \ --hook-kind=checkpoint --namespace=${PROJECT_CPD_INSTANCE}