Creating a backup of your Redis cluster in AWS ElastiCache involves creating a snapshot of the data at a specific point in time. This snapshot can then be used to restore the data if required.
Redis
.Actions
, Create Snapshot
.Snapshot Name
, enter a name for your snapshot.Create
.AWS starts creating the snapshot, which might take a while depending on the size of the data.
If you prefer using AWS CLI, use the following command:
aws elasticache create-snapshot \ --snapshot-name my-snapshot \ --replication-group-id my-replication-group \ --cache-cluster-id my-cache-cluster
Remember to replace my-snapshot
, my-replication-group
, and my-cache-cluster
with appropriate values.
You can also configure automatic backups by setting a backup window during which snapshots are automatically taken. This is configured when creating or modifying an ElastiCache Redis cluster.
Note: Snapshots are stored until you manually delete them, and they incur storage costs.
Restoring data from a snapshot involves creating a new cluster from the snapshot. And remember, data restoration will override existing data in the target cluster.
It is recommended to regularly backup your data and validate your backup strategy to safeguard against data loss or corruption.
Dragonfly is fully compatible with the Redis ecosystem and requires no code changes to implement.