Menu
Amazon ElastiCache
User Guide (API Version 2015-02-02)

Taking a Final Backup

You can create a final backup using the ElastiCache console, the AWS CLI, or the ElastiCache API.

Creating a Final Backup (Console)

You can create a final backup when you delete either a Redis cluster (for the API or CLI, a replication group) using the ElastiCache console.

To create a final backup when deleting a Redis cluster, on the delete dialog box (step 5), choose Yes and give the backup a name.

Taking a Final Backup (AWS CLI)

You can create a final backup when deleting a Redis cluster (for the API or CLI, a replication group) using the AWS CLI.

When Deleting a Redis Cluster

To create a final backup, use the delete-cache-cluster AWS CLI operation with the following parameters.

  • --cache-cluster-id – Name of the cluster being deleted.

  • --final-snapshot-identifier – Name of the backup.

The following code creates the final backup bkup-20150515-final when deleting the cluster myRedisCluster.

For Linux, macOS, or Unix:

Copy
aws elasticache delete-cache-cluster \ --cache-cluster-id myRedisCluster \ --final-snapshot-identifier bkup-20150515-final

For Windows:

Copy
aws elasticache delete-cache-cluster ^ --cache-cluster-id myRedisCluster ^ --final-snapshot-identifier bkup-20150515-final

For more information, see delete-cache-cluster in the AWS Command Line Interface Reference.

When Deleting a Redis Replication Group

To create a final backup when deleting a replication group, use the delete-replication-group AWS CLI operation, with the following parameters:

  • --replication-group-id – Name of the replication group being deleted.

  • --final-snapshot-identifier – Name of the final backup.

The following code takes the final backup bkup-20150515-final when deleting the replication group myReplGroup.

For Linux, macOS, or Unix:

Copy
aws elasticache delete-replication-group \ --replication-group-id myReplGroup \ --final-snapshot-identifier bkup-20150515-final

For Windows:

Copy
aws elasticache delete-replication-group ^ --replication-group-id myReplGroup ^ --final-snapshot-identifier bkup-20150515-final

For more information, see delete-replication-group in the AWS Command Line Interface Reference.

Taking a Final Backup (ElastiCache API)

You can create a final backup when deleting a Redis cluster or replication group using the ElastiCache API.

When Deleting a Redis Cluster

To create a final backup, use the DeleteCacheCluster ElastiCache API operation with the following parameters.

  • CacheClusterId – Name of the cluster being deleted.

  • FinalSnapshotIdentifier – Name of the backup.

The following ElastiCache API operation creates the backup bkup-20150515-final when deleting the cluster myRedisCluster.

Copy
https://elasticache.us-west-2.amazonaws.com/ ?Action=DeleteCacheCluster &CacheClusterId=myRedisCluster &FinalSnapshotIdentifier=bkup-20150515-final &Version=2015-02-02 &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20150202T192317Z &X-Amz-Credential=<credential>

For more information, see DeleteCacheCluster in the Amazon ElastiCache API Reference.

When Deleting a Redis Replication Group

To create a final backup when deleting a replication group, use the DeleteReplicationGroup ElastiCache API operation, with the following parameters:

  • ReplicationGroupId – Name of the replication group being deleted.

  • FinalSnapshotIdentifier – Name of the final backup.

The following ElastiCache API operation creates the backup bkup-20150515-final when deleting the replication group myReplGroup.

Copy
https://elasticache.us-west-2.amazonaws.com/ ?Action=DeleteReplicationGroup &FinalSnapshotIdentifier=bkup-20150515-final &ReplicationGroupId=myReplGroup &Version=2015-02-02 &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20150202T192317Z &X-Amz-Credential=<credential>

For more information, see DeleteReplicationGroup in the Amazon ElastiCache API Reference.