Skip to content

Commit 0b834b9

Browse files
authored
Merge pull request #69221 from sbeskin-redhat/OADP_3184
OADP-3184: [Doc improvements] - OADP backing up & OADP restoring
2 parents 23c53b9 + b766448 commit 0b834b9

13 files changed

+31
-33
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,24 @@ toc::[]
99

1010
You back up applications by creating a `Backup` custom resource (CR). See xref:../../../backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-creating-backup-cr.adoc#oadp-creating-backup-cr-doc[Creating a Backup CR].
1111

12-
The `Backup` CR creates backup files for Kubernetes resources and internal images, on S3 object storage, and snapshots for persistent volumes (PVs), if the cloud provider uses a native snapshot API or the Container Storage Interface (CSI) to create snapshots, such as {rh-storage} 4.
12+
* The `Backup` CR creates backup files for Kubernetes resources and internal images on S3 object storage.
13+
* If your cloud provider has a native snapshot API or supports CSI snapshots, the `Backup` CR backs up persistent volumes (PVs) by creating snapshots. For more information about working with CSI snapshots, see xref:../../../backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-backing-up-pvs-csi-doc.adoc#oadp-backing-up-pvs-csi-doc[Backing up persistent volumes with CSI snapshots].
1314
1415
For more information about CSI volume snapshots, see xref:../../../storage/container_storage_interface/persistent-storage-csi-snapshots.adoc#persistent-storage-csi-snapshots[CSI volume snapshots].
1516

1617
:FeatureName: The `CloudStorage` API for S3 storage
1718
include::snippets/technology-preview.adoc[]
1819

19-
* If your cloud provider has a native snapshot API or supports CSI snapshots, the `Backup` CR backs up persistent volumes (PVs) by creating snapshots. For more information about working with CSI snapshots, see xref:../../../backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-backing-up-pvs-csi-doc.adoc#oadp-backing-up-pvs-csi-doc[Backing up persistent volumes with CSI snapshots].
20-
21-
* If your cloud provider does not support snapshots or if your applications are on NFS data volumes, you can create backups by using Restic. See xref:../../../backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-backing-up-applications-restic-doc.adoc#oadp-backing-up-applications-restic-doc[Backing up applications with File System Backup: Kopia or Restic].
20+
* If your cloud provider does not support snapshots or if your applications are on NFS data volumes, you can create backups by using Kopia or Restic. See xref:../../../backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-backing-up-applications-restic-doc.adoc#oadp-backing-up-applications-restic-doc[Backing up applications with File System Backup: Kopia or Restic].
2221
2322
[IMPORTANT]
2423
====
2524
The {oadp-first} does not support backing up volume snapshots that were created by other software.
2625
====
2726

28-
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#backing-up-applications[Creating backup hooks].
27+
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].
2928

30-
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#backing-up-applications[Scheduling backups].
29+
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]].
3130

3231
// include::modules/oadp-creating-backup-cr.adoc[leveloffset=+1]
3332
// include::modules/oadp-backing-up-pvs-csi.adoc[leveloffset=+1]

backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-about-kopia.adoc

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,22 @@ Kopia supports network and local storage locations, and many cloud or remote sto
1212

1313
* Amazon S3 and any cloud storage that is compatible with S3
1414
* Azure Blob Storage
15-
* Google Cloud Storage Platform
15+
* Google Cloud Storage platform
1616
1717
Kopia uses content-addressable storage for snapshots:
1818

19-
* Each snapshot is always incremental. This means that all data is uploaded once to the repository, based on file content. A file is only uploaded to the repository again if it is modified.
20-
21-
* Multiple copies of the same file are stored once, meaning deduplication. After moving or renaming large files, Kopia can recognize that they have the same content and does not upload them again.
19+
* Snapshots are always incremental; data that is already included in previous snapshots is not re-uploaded to the repository. A file is only uploaded to the repository again if it is modified.
20+
* Stored data is deduplicated; if multiple copies of the same file exist, only one of them is stored.
21+
* If files are moved or renamed, Kopia can recognize that they have the same content and does not upload them again.
2222
2323
2424
[id="oadp-kopia-integration"]
2525
== OADP integration with Kopia
2626

2727
OADP 1.3 supports Kopia as the backup mechanism for pod volume backup in addition to Restic. You must choose one or the other at installation by setting the `uploaderType` field in the `DataProtectionApplication` custom resource (CR). The possible values are `restic` or `kopia`. If you do not specify an `uploaderType`, OADP 1.3 defaults to using Kopia as the backup mechanism. The data is written to and read from a unified repository.
2828

29-
.`DataProtectionApplication` configuration for Kopia
29+
The following example shows a `DataProtectionApplication` CR configured for using Kopia:
30+
3031
[source,yaml]
3132
----
3233
apiVersion: oadp.openshift.io/v1alpha1

backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-backing-up-applications-restic-doc.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ include::_attributes/common-attributes.adoc[]
77

88
toc::[]
99

10-
You can use OADP to back up and restore Kubernetes volumes attached to pods from the file system of the volumes. This process is called File System Backup (FSB) or Pod Volume Backup (PVB) and is accomplished by using modules from the following open source backup tools: Restic and Kopia.
10+
You can use OADP to back up and restore Kubernetes volumes attached to pods from the file system of the volumes. This process is called File System Backup (FSB) or Pod Volume Backup (PVB). It is accomplished by using modules from the open source backup tools Restic or Kopia.
1111

1212
If your cloud provider does not support snapshots or if your applications are on NFS data volumes, you can create backups by using FSB.
1313

@@ -16,7 +16,7 @@ If your cloud provider does not support snapshots or if your applications are on
1616
link:https://restic.net/[Restic] is installed by the OADP Operator by default. If you prefer, you can install link:https://kopia.io/[Kopia] instead.
1717
====
1818

19-
FSB integration with OADP provides a solution for backing up and restoring almost any type of Kubernetes volume. This integration is an additional capability of OADP and is not a replacement for existing functionality.
19+
FSB integration with OADP provides a solution for backing up and restoring almost any type of Kubernetes volumes. This integration is an additional capability of OADP and is not a replacement for existing functionality.
2020

2121
You back up Kubernetes resources, internal images, and persistent volumes with Kopia or Restic by editing the `Backup` custom resource (CR).
2222

@@ -26,7 +26,7 @@ You do not need to specify a snapshot location in the `DataProtectionApplication
2626
====
2727
In OADP version 1.3 and later, you can use either Kopia or Restic for backing up applications.
2828
29-
For the Built-in DataMover you must use Kopia.
29+
For the Built-in DataMover, you must use Kopia.
3030
3131
In OADP version 1.2 and earlier, you can only use Restic for backing up applications.
3232
====

backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-backing-up-pvs-csi-doc.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ toc::[]
88

99
You back up persistent volumes with Container Storage Interface (CSI) snapshots by editing the `VolumeSnapshotClass` custom resource (CR) of the cloud storage before you create the `Backup` CR, see xref:../../../storage/container_storage_interface/persistent-storage-csi-snapshots.adoc#persistent-storage-csi-snapshots-overview_persistent-storage-csi-snapshots[CSI volume snapshots].
1010

11-
For more information see xref:../../../backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-creating-backup-cr.adoc#oadp-creating-backup-cr-doc[Creating a Backup CR].
11+
For more information, see xref:../../../backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-creating-backup-cr.adoc#oadp-creating-backup-cr-doc[Creating a Backup CR].
1212

1313
.Prerequisites
1414

backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-creating-backup-cr.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ spec:
7777
<2> Optional: Specify an array of resources to include in the backup. Resources might be shortcuts (for example, 'po' for 'pods') or fully-qualified. If unspecified, all resources are included.
7878
<3> Optional: Specify an array of resources to exclude from the backup. Resources might be shortcuts (for example, 'po' for 'pods') or fully-qualified.
7979
<4> Specify the name of the `backupStorageLocations` CR.
80-
<5> Map of {key,value} pairs of backup resources that have *all* of the specified labels.
80+
<5> Map of {key,value} pairs of backup resources that have *all* the specified labels.
8181
<6> Map of {key,value} pairs of backup resources that have *one or more* of the specified labels.
8282

8383
. Verify that the status of the `Backup` CR is `Completed`:

backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-creating-backup-hooks-doc.adoc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ toc::[]
88

99
When performing a backup, it is possible to specify one or more commands to execute in a container within a pod, based on the pod being backed up.
1010

11-
The commands can be configured to performed before any custom action processing (_Pre_ hooks), or after all custom actions have been completed and any additional items specified by the custom action have been backed up.
12-
13-
_Post_ hooks run after the backup.
11+
The commands can be configured to performed before any custom action processing (_Pre_ hooks), or after all custom actions have been completed and any additional items specified by the custom action have been backed up (_Post_ hooks).
1412

1513
You create backup hooks to run commands in a container in a pod by editing the `Backup` custom resource (CR).
1614

@@ -55,7 +53,7 @@ spec:
5553
<2> Optional: You can specify namespaces to which the hook does not apply.
5654
<3> Currently, pods are the only supported resource that hooks can apply to.
5755
<4> Optional: You can specify resources to which the hook does not apply.
58-
<5> Optional: This hook only applies to objects matching the label. If this value is not specified, the hook applies to all namespaces.
56+
<5> Optional: This hook only applies to objects matching the label. If this value is not specified, the hook applies to all objects.
5957
<6> Array of hooks to run before the backup.
6058
<7> Optional: If the container is not specified, the command runs in the first container in the pod.
6159
<8> This is the entry point for the `init` container being added.

backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-deleting-backups-doc.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ After you delete the `Backup` CR and the associated object storage data, you can
2424

2525
* Choose one of the following actions to delete the `Backup` CR:
2626
27-
** To delete the `Backup` CR and keep the associated object storage data, issue the following command:
27+
** To delete the `Backup` CR and keep the associated object storage data, run the following command:
2828
+
2929
[source,terminal]
3030
----
3131
$ oc delete backup <backup_CR_name> -n <velero_namespace>
3232
----
3333

34-
** To delete the `Backup` CR and delete the associated object storage data, issue the following command:
34+
** To delete the `Backup` CR and delete the associated object storage data, run the following command:
3535
+
3636
[source,terminal]
3737
----
@@ -40,5 +40,5 @@ $ velero backup delete <backup_CR_name> -n <velero_namespace>
4040
+
4141
Where:
4242
+
43-
<backup_CR_name>:: Specifies the name of the `Backup` custom resource.
44-
<velero_namespace>:: Specifies the namespace that contains the `Backup` custom resource.
43+
<backup_CR_name>:: The name of the `Backup` custom resource.
44+
<velero_namespace>:: The namespace that contains the `Backup` custom resource.

backup_and_restore/application_backup_and_restore/backing_up_and_restoring/oadp-scheduling-backups-doc.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ include::_attributes/common-attributes.adoc[]
77

88
toc::[]
99

10-
The schedule operation allows you to create a backup of your data at a specified time, defined by a Cron expression.
10+
The schedule operation allows you to create a backup of your data at a particular time, specified by a Cron expression.
1111

1212
You schedule backups by creating a `Schedule` custom resource (CR) instead of a `Backup` CR.
1313

backup_and_restore/application_backup_and_restore/backing_up_and_restoring/restoring-applications.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ toc::[]
88

99
You restore application backups by creating a `Restore` custom resource (CR). See xref:../../../backup_and_restore/application_backup_and_restore/backing_up_and_restoring/restoring-applications.adoc#oadp-creating-restore-cr_restoring-applications[Creating a Restore CR].
1010

11-
You can create restore hooks to run commands in a container in a pod while restoring your application 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]
11+
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

1313
include::modules/oadp-creating-restore-cr.adoc[leveloffset=+1]
1414
include::modules/oadp-creating-restore-hooks.adoc[leveloffset=+1]

backup_and_restore/application_backup_and_restore/release-notes/oadp-release-notes-1-3.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ include::_attributes/attributes-openshift-dedicated.adoc[]
77

88
toc::[]
99

10-
The release notes for OpenShift API for Data Protection (OADP) describe new features and enhancements, deprecated features, product recommendations, known issues, and resolved issues.
10+
The release notes for OpenShift API for Data Protection (OADP) 1.3 describe new features and enhancements, deprecated features, product recommendations, known issues, and resolved issues.
1111

1212
include::modules/oadp-release-notes-1-3-0.adoc[leveloffset=+1]
1313
include::modules/oadp-upgrade-from-oadp-data-mover-1-2-0.adoc[leveloffset=+3]

0 commit comments

Comments
 (0)