oadp
tenant-restore create
Restore a backup of an IBM Software Hub instance.
Syntax
cpd-cli oadp tenant-restore create <tenant-restore-name> \
--from-tenant-backup=<tenant-backup-file-name> \
[--cacert=<certificate-bundle-path>] \
[--disable-inverseops=true|false] \
[--help \
[--image-prefix=<image-registry-prefix>] \
[--insecure-skip-tls-verify=true|false] \
[--posthooks=true|false] \
[--preworkloadhooks=true|false] \
[--retries=<integer>] \
[--scale-wait-timeout=<h,m,s>] \
[--skip-hooks] \
[--skip-no-plan-meta]=true|false] \
[--uploader-type=kopia|restic] \
[--values=<yaml-file-name1,yaml-file-name2,...>] \
# Global options
[--add_dir_header=true|false] \
[--alsologtostderr=true|false] \
[--cpd-namespace=<cpd-namespace>] \
[--kubeconfig=<kubeconfig-paths> \
[--log-level=info|debug|warn|error|panic|trace] \
[--log-backtrace-at=<source_code_file>:<line_number>] \
[--log_dir=<log_directory>] \
[--log_file=<log_file_name>] \
[--log_file_max_size=<uint>] \
[--logtostderr=true|false] \
[--namespace=<namespace-name>] \
[--one_output=true|false] \
[--skip_headers=true|false] \
[--skip_log_headers=true|false] \
[--stderrthreshold=<integer>] \
[--v=<integer>] \
[--verbose \
[--vmodule=<pattern1>=<n1>,<pattern2>=<n2>,<pattern3>=<n3>]
Arguments
| Argument | Description |
|---|---|
<tenant-restore-name> |
The name of the restore to create. |
| Argument | Description |
|---|---|
<trace-location> |
The stack trace location |
<severity> |
The log severity level |
Options
| Option | Description |
|---|---|
--cacert |
The certificate bundle path to use
when verifying TLS connections.
|
--disable-inverseops |
Disable inverseops upon a fatal
plan execution error.
|
--force |
If true, allows the target namespaces to exist.
|
--from-tenant-backup
|
The tenant backup name from which
to restore.
|
--help
|
Display command
help.
|
--insecure-skip-tls-verify |
When set to 'true', the object
store's TLS certificate are not checked for validity (not recommended for
production).
|
--posthooks |
Run
ConfigMap post-restore hooks.
|
--precheck-exclude-checks |
Comma separated list of backup
precheck checks to skip.
|
--precheck-ignore-warnings |
Specifies whether backup precheck
warnings will not be flagged as errors.
|
--precheck-include-checks |
Comma separated list of backup
precheck checks to selectively run. By default, all checks are executed if this option is not
specified.
|
--preworkloadhooks |
Run the ConfigMap pre-workload
restore hooks.
|
--retries |
Number of
retries if a restore step fails.
|
--scale-wait-timeout |
The scale wait timeout duration
('h' for hours, 'm' for minutes, 's' for seconds).
|
--skip-hooks |
Skip the
default scale up of Kubernetes resources and ConfigMap restore
hooks.
|
--skip-no-plan-meta |
If true, skip ConfigMaps that do
not have a plan-meta section. Otherwise, report an error if a ConfigMap does not have a plan-meta
section.
|
--skip-precheck |
Skip precheck
hooks.
|
--uploader-type |
The type of uploader used to
transfer pod volume data.
|
--values
|
YAML files
containing custom parameters to be passed to ConfigMap
hooks.
|
Global options
You can also use the following global options with this command:
| Option | Description |
|---|---|
--add_dir_header |
Add the file directory to the
header of log messages.
|
--alsologtostderr |
Log to standard error as well as
files.
Note: This option has no effect when
--logtostderr=true. |
--cpd-namespace |
The IBM Software Hub namespace in
which the utility operates.
|
--kubeconfig |
Paths to a kubeconfig. Only
required if out-of-cluster.
|
--log-level |
The command log
level.
|
--log-backtrace-at |
When logging hits
<source_code_file> at line <line_number>, emit a stack trace. The default is any file at line
0.
|
--log_dir |
If non-empty, write log files in
this directory.
|
--log_file |
If non-empty, use this log
file.
|
--log_file_max_size |
The maximum size, in MB, that a
log file can grow to. If you specify 0, the maximum file size is
unlimited.
|
--logtostderr |
Log to standard error instead of
files.
|
--namespace
|
The namespace where OADP is
installed.
|
--one_output |
Specifies whether to only write
logs to their native severity level.
|
--skip_headers |
Specifies whether to avoid header
prefixes in log messages.
|
--skip_log_headers |
Specifies whether to avoid header
prefixes when opening log files.
Note: This option has no effect when
--logtostderr=true. |
--stderrthreshold |
Logs at or above the specified
severity threshold go to stderr. The threshold is used when you enable writing to files and
stderr.
|
--v
|
Number for the log level
verbosity.
|
--verbose |
Logs include more detailed
messages.
|
--vmodule |
A comma-separated list of
pattern=N settings for file-filtered logging.
|
Example
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.
- Restore a backup of an IBM Software
Hub instance
(
<tenant-backup-name>) in an air-gapped environment. -
cpd-cli oadp tenant-restore create <tenant-restore-name> \ --from-tenant-backup ${TENANT_BACKUP_NAME}\ --image-prefix=${PRIVATE_REGISTRY_LOCATION} \ --log-level=debug \ --verbose