Prerequisites

Ensure that you meet the prerequisites before you work with Backup & Restore service.

  1. Install either the Backup & Restore or Backup & Restore Agent service. For the procedure to install, see Install Backup & Restore.
  2. Ensure that you define a StorageClass that is provisioned by a supported CSI driver. Check the provisioner: in the Spec to make sure that it is backed by CSI.
    Sample Storage Class for Fusion Data Foundation:
    
    apiVersion: storage.k8s.io/v1
    kind: StorageClass
    metadata:
      name: ocs-storagecluster-cephfs
    provisioner: openshift-storage.cephfs.csi.ceph.com
    reclaimPolicy: Delete
    allowVolumeExpansion: true
    volumeBindingMode: Immediate
    Note: The Storage Class must have the CSI Snapshot capability (VolumeSnapshotClass).
  3. For backups and restores to run successfully, ensure that CSI compliant storage classes have volumeBindingMode set to Immediate.
  4. Ensure that the VolumeSnapshotClass has a driver: that matches the provisioner: in the StorageClass.

    Sample YAML for Red Hat® OpenShift® Data Foundation RBD storage:

    
    apiVersion: snapshot.storage.k8s.io/v1
    kind: VolumeSnapshotClass
    driver: openshift-storage.cephfs.csi.ceph.com
    metadata:
      name: ocs-storagecluster-cephfsplugin-snapclass
    deletionPolicy: Delete
    parameters:
      clusterID: openshift-storage
      csi.storage.k8s.io/snapshotter-secret-name: rook-csi-cephfs-provisioner
      csi.storage.k8s.io/snapshotter-secret-namespace: openshift-storage