oadp
backup posthooks
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 backup post-hooks.
Syntax
cpd-cli oadp backup 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 backup 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 |
Include the specified namespaces in the backup.
|
--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 backup post-hooks.
-
cpd-cli oadp backup posthooks \ --aux-service-image-prefix=icr.io/cpopen/cpd \ --hook-kind=checkpoint --namespace=${PROJECT_CPD_INSTANCE} - Run backup post-hooks to bring up services.
-
cpd-cli oadp backup posthooks \ --include-namespaces=${PROJECT_CPD_INSTANCE} \ --log-level=debug \ --verbose