Skip to content

Commit 755d23b

Browse files
authored
Merge pull request #79808 from shdeshpa07/OADP-3920-add-review-section
OADP-3920 added review section for backup and restore
2 parents 6c43dfd + 7b51060 commit 755d23b

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed

backup_and_restore/application_backup_and_restore/backing_up_and_restoring/backing-up-applications.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ include::snippets/pod-volume-restore-snapshot-read-only.adoc[]
3333
The {oadp-first} does not support backing up volume snapshots that were created by other software.
3434
====
3535

36+
include::modules/oadp-review-backup-restore.adoc[leveloffset=+1]
37+
3638
You can create backup hooks to run commands before or after the backup operation. See xref:../../../backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-creating-backup-hooks-doc.adoc#oadp-creating-backup-hooks-doc[Creating backup hooks].
3739

3840
You can schedule backups by creating a `Schedule` CR instead of a `Backup` CR. See xref:../../../backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-scheduling-backups-doc.adoc#oadp-scheduling-backups-doc[Scheduling backups using Schedule CR]].

backup_and_restore/application_backup_and_restore/backing_up_and_restoring/restoring-applications.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ You restore application backups by creating a `Restore` custom resource (CR). Se
1010

1111
You can create restore hooks to run commands in a container in a pod by editing the `Restore` CR. See xref:../../../backup_and_restore/application_backup_and_restore/backing_up_and_restoring/restoring-applications.adoc#oadp-creating-restore-hooks_restoring-applications[Creating restore hooks].
1212

13+
include::modules/oadp-review-backup-restore.adoc[leveloffset=+1]
1314
include::modules/oadp-creating-restore-cr.adoc[leveloffset=+1]
1415
include::modules/oadp-creating-restore-hooks.adoc[leveloffset=+1]
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * backup_and_restore/application_backup_and_restore/backing_up_and_restoring/restoring-applications.adoc
4+
// * backup_and_restore/application_backup_and_restore/backing_up_and_restoring/backing-up-applications.adoc
5+
6+
:_mod-docs-content-type: PROCEDURE
7+
[id="oadp-review-backup-restore_{context}"]
8+
= Previewing resources before running backup and restore
9+
10+
{oadp-short} backs up application resources based on the type, namespace, or label. This means that you can view the resources after the backup is complete. Similarly, you can view the restored objects based on the namespace, persistent volume (PV), or label after a restore operation is complete. To preview the resources in advance, you can do a dry run of the backup and restore operations.
11+
12+
.Prerequisites
13+
14+
* You have installed the OADP Operator.
15+
16+
.Procedure
17+
18+
. To preview the resources included in the backup before running the actual backup, run the following command:
19+
+
20+
[source,terminal]
21+
----
22+
$ velero backup create <backup-name> --snapshot-volumes false # <1>
23+
----
24+
<1> Specify the value of `--snapshot-volumes` parameter as `false`.
25+
+
26+
. To know more details about the backup resources, run the following command:
27+
+
28+
[source,terminal]
29+
----
30+
$ velero describe backup <backup_name> --details # <1>
31+
----
32+
<1> Specify the name of the backup.
33+
+
34+
. To preview the resources included in the restore before running the actual restore, run the following command:
35+
+
36+
[source,terminal]
37+
----
38+
$ velero restore create --from-backup <backup-name> # <1>
39+
----
40+
<1> Specify the name of the backup created to review the backup resources.
41+
+
42+
[IMPORTANT]
43+
====
44+
The `velero restore create` command creates restore resources in the cluster. You must delete the resources created as part of the restore, after you review the resources.
45+
====
46+
+
47+
. To know more details about the restore resources, run the following command:
48+
+
49+
[source,terminal]
50+
----
51+
$ velero describe restore <restore_name> --details # <1>
52+
----
53+
<1> Specify the name of the restore.

0 commit comments

Comments
 (0)