Skip to content

Commit c7d5f61

Browse files
committed
BZ2094492: Added removing backup section to Backup & restore docs
1 parent 0778fe1 commit c7d5f61

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,8 @@ include::modules/oadp-using-data-mover-for-csi-snapshots.adoc[leveloffset=+1]
3333
3434
include::modules/oadp-creating-backup-hooks.adoc[leveloffset=+1]
3535
include::modules/oadp-scheduling-backups.adoc[leveloffset=+1]
36+
include::modules/oadp-deleting-backups.adoc[leveloffset=+1]
37+
38+
[role="_additional-resources"]
39+
.Additional resources
40+
* xref:../../../backup_and_restore/application_backup_and_restore/troubleshooting.adoc#velero-obtaining-by-downloading_oadp-troubleshooting[Downloading the Velero CLI tool]

modules/oadp-deleting-backups.adoc

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * backup_and_restore/application_backup_and_restore/backing_up_and_restoring/backing-up-applications.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="oadp-deleting-backups_{context}"]
7+
= Deleting backups
8+
9+
You can remove backup files by deleting the `Backup` custom resource (CR).
10+
11+
[WARNING]
12+
====
13+
After you delete the `Backup` CR and the associated object storage data, you cannot recover the deleted data.
14+
====
15+
16+
.Prerequisites
17+
18+
* You created a `Backup` CR.
19+
* You know the name of the `Backup` CR and the namespace that contains it.
20+
* You downloaded the Velero CLI tool.
21+
* You can access the Velero binary in your cluster.
22+
23+
.Procedure
24+
25+
* Choose one of the following actions to delete the `Backup` CR:
26+
27+
** To delete the `Backup` CR and keep the associated object storage data, issue the following command:
28+
+
29+
[source,terminal]
30+
----
31+
$ oc delete backup <backup_CR_name> -n <velero_namespace>
32+
----
33+
34+
** To delete the `Backup` CR and delete the associated object storage data, issue the following command:
35+
+
36+
[source,terminal]
37+
----
38+
$ velero backup delete <backup_CR_name> -n <velero_namespace>
39+
----
40+
+
41+
Where:
42+
+
43+
<backup_CR_name>:: Specifies the name of the `Backup` custom resource.
44+
<velero_namespace>:: Specifies the namespace that contains the `Backup` custom resource.

0 commit comments

Comments
 (0)