1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/hcp-dr-oadp-observe-velero.adoc

36 lines
1.2 KiB
Plaintext
Raw Normal View History

// Module included in the following assemblies:
//
// * hosted_control_planes/hcp-disaster-recovery-oadp.adoc
// * hosted_control_planes/hcp-disaster-recovery-oadp-auto.adoc
:_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.