Backup & Restore Instance
Implementing a robust backup strategy is essential for data protection. Regular backups provide recovery options in case of database anomalies or data corruption incidents.
Alauda Cache Service E1 supports two backup methodologies:
- S3 Backup: Stores backup data in S3-compatible object storage systems, providing scalable and durable off-cluster backup capabilities.
- PVC Backup: Utilizes Kubernetes PersistentVolumeClaims to store backup data on persistent volumes. The backup volume is created with the
ReadWriteOnceaccess mode by default, so node-local block storage can be used; aReadWriteManyprovider such as NFS or Ceph is accepted but is not required. Setspec.accessModesonRedisBackuporRedisClusterBackupto request a different access mode.
Prerequisites
To utilize S3 backup functionality with your own storage buckets, confirm with your administrator that S3 storage integration has been properly configured for your project namespace. Alternatively, ensure your cluster provides a StorageClass capable of provisioning the backup volume; node-local block storage is sufficient.
For PVC backup, the Storage Class selector — shown both when you create a backup and when you edit the automatic backup setting — offers only the StorageClasses whose provisioner appears in the allow-list the platform publishes on the global cluster: the Redis.backup key of middleware_sc_map.yaml, held in the cpaas-system namespace by the plugin-supplied middleware-sc-cm-base ConfigMap together with the optional middleware-sc-cm ConfigMap that carries your own additions. Alauda Container Platform Data Services Essentials v4.4.1 and later ship nfs.csi.k8s.io, rook-ceph.cephfs.csi.ceph.com, and topolvm.cybozu.com in that list, so node-local TopoLVM volumes are selectable with no further configuration. If that version of the plugin cannot be installed, add the provisioner you use to middleware-sc-cm: its entries are added to the shipped list rather than replacing it, and are not overwritten when the plugin is upgraded.
Immediate Backup
An immediate backup creates a point-in-time snapshot of your running Redis instance.
Procedure
-
In the left navigation panel, click Redis.
-
Click on Namespace Name.
-
Click on Instance Name.
-
Navigate to the Backup & Restore tab and click Create Backup.
-
Configure the backup parameters and click Create. The backup process duration varies based on data volume and network conditions. Monitor the process status in the backup list.
Automatic Backup
Automatic backups allow you to schedule regular, recurring backups of your Redis instance according to your data protection requirements.
Procedure
-
In the left navigation panel, click Redis.
-
Click on Namespace Name.
-
Click on Instance Name.
-
In the Backup & Restore tab, locate the Automatic Backup Setting section and click the edit button
.
-
Enable Automatic Backup and configure the backup schedule and retention parameters.
-
Click Update to apply the automatic backup configuration.
Restore
The restore operation creates a new Redis instance populated with data from a previous backup.
A PVC backup is delivered over the network: the platform mounts the backup volume read-only into a transient in-cluster source, each Redis pod pulls its own data from that source, and the source is removed once the instance is ready. Every PVC backup takes this path regardless of the access mode it was created with, which is why a ReadWriteMany volume is no longer required. An S3 backup is pulled directly from the object store, as before.
The restore path is chosen by the instance's bundle version, not by the backup's access mode. An instance whose BUNDLE VERSION — status.upgradeStatus.crVersion, shown by kubectl get redis — is earlier than 5.1.0 may still restore by mounting the backup volume into every Redis pod, which requires the backup to be on a ReadWriteMany volume: create the backup with spec.accessModes: [ReadWriteMany] when you intend to restore it into such an instance. An instance stays on an earlier bundle version only while it is held there, by spec.upgradeOption.autoUpgrade set to false together with a pinned spec.upgradeOption.crVersion.
Procedure
-
In the left navigation panel, click Redis.
-
Click on Namespace Name.
-
Navigate to the source instance's Backup & Restore tab, locate the desired backup, and click
> Recover.
-
Configure the target instance parameters and click Recover. Monitor the recovery progress until the target instance reaches the Running state, indicating successful restoration.