2024-05-18 00:21:36 +05:30
|
|
|
// Module included in the following assemblies:
|
|
|
|
|
//
|
|
|
|
|
// * hosted_control_planes/hcp-disaster-recovery-oadp.adoc
|
2025-06-18 10:36:24 -04:00
|
|
|
// * hosted_control_planes/hcp-disaster-recovery-oadp-auto.adoc
|
2024-05-18 00:21:36 +05:30
|
|
|
|
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
|
|
|
[id="hcp-dr-oadp-observe-velero_{context}"]
|
|
|
|
|
= Using the velero CLI to describe the Backup and Restore resources
|
|
|
|
|
|
|
|
|
|
When using {oadp-full}, you can get more details of the `Backup` and `Restore` resources by using the `velero` command-line interface (CLI).
|
|
|
|
|
|
|
|
|
|
.Procedure
|
|
|
|
|
|
|
|
|
|
. Create an alias to use the `velero` CLI from a container by running the following command:
|
|
|
|
|
+
|
|
|
|
|
[source,terminal]
|
|
|
|
|
----
|
|
|
|
|
$ alias velero='oc -n openshift-adp exec deployment/velero -c velero -it -- ./velero'
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
. Get details of your `Restore` custom resource (CR) by running the following command:
|
|
|
|
|
+
|
|
|
|
|
[source,terminal]
|
|
|
|
|
----
|
|
|
|
|
$ velero restore describe <restore_resource_name> --details <1>
|
|
|
|
|
----
|
|
|
|
|
<1> Replace `<restore_resource_name>` with the name of your `Restore` resource.
|
|
|
|
|
|
|
|
|
|
. Get details of your `Backup` CR by running the following command:
|
|
|
|
|
+
|
|
|
|
|
[source,terminal]
|
|
|
|
|
----
|
|
|
|
|
$ velero restore describe <backup_resource_name> --details <1>
|
|
|
|
|
----
|
|
|
|
|
<1> Replace `<backup_resource_name>` with the name of your `Backup` resource.
|