Restoring an application
Restore a backed up application.
Before you begin
- When you restore an application from the Hub cluster to a Spoke cluster, manually check whether the same storageclass that is used to define the PVCs on the Hub exists on the Spoke cluster.
- By default, if PVCs with the same name exist in the namespace, they get restored with a new name
(original name + “-n” suffix with n=1,2,3). If you want to skip the restore of existing PVCs,
manually create a Restore CR from the command line and set an optional
spec
fieldskipExistingPVC
to true. - You can restore backup data to a different
StorageClass
provisioner on an alternative cluster, for example, restore data that was originally backed-up from a CephFS provisionedStorageClass
to a Scale provisionedStorageClass
. The Restore CR includes an optionalspec
field,targetStorageClass
, where you can specify a specific storage class for the restore. It is only available through manually created Restore CRs from the command line or command prompt.- If the
targetStorageClass
is not provided, the same storage class as the backup is attempted for the restore. - If the
targetStorageClass
field is not provided and the same storage class as the backup is not available, the default storage class of the system is used.
targetStorageClass
is not supported for IBM Cloud Pak for Data. - If the
- You must have OpenShift® APIs for Data Protection (OADP) version 1.3.1.
- For the Datamover operator to restore CephFS and Global Data Platform 5.2.0+ snapshots by using the ReadOnlyMany access mode, ensure that the value of backingSnasphot is true in the storageclass.
About this task
- From S3 to the same cluster and project
- From S3 to the same cluster and existing project
- From S3 to the same cluster and new project
- From S3 to a different cluster
- From S3 to IBM Cloud Pak for Data.
- Restore from snapshot
Backups that are taken using an In place snapshot can be restored only to the same project, and not to any new or a different project that exists. If you try to restore a project that is deleted from Red Hat® OpenShift, then the restore to the same project with In place snapshot does not include PVCs.
After you remove an Agent or Spoke connection from the Hub cluster, it does not show up in the Topology page. Also, you can restore the available (not expired) successful application backups with an object storage location from that cluster to a different cluster.
When you do a restore operation, the restored files, directories, and mount points can have different permissions, group, and owner from the source that was backed up; it is an expected behavior of Red Hat OpenShift design. For more information, see OpenShift documentation and https://access.redhat.com/solutions/7007252. You can modify this behavior by using security context constraints (SCCs), parameters such as fsGroup, or a custom script or command such as chmod or chown.