Creating a final backup
You can create a final backup using the ElastiCache console, the Amazon CLI, or the ElastiCache API.
You can create a final backup when you delete a Memcached serverless cache by using the ElastiCache console.
To create a final backup when deleting a cache, on the delete dialog box choose Yes under Create backup and give the backup a name.
Related topics
You can create a final backup when deleting a cache using the Amazon CLI.
When deleting a serverless cache
To create a final backup, use the delete-serverless-cache
Amazon CLI operation with
the following parameters.
-
--serverless-cache-name
– Name of the cache being deleted. -
--final-snapshot-name
– Name of the backup.
The following code creates the final backup bkup-20231127-final
when deleting the
cache myserverlesscache
.
For Linux, OS X, or Unix:
aws elasticache delete-serverless-cache \ --serverless-cache-name
myserverlesscache
\ --final-snapshot-namebkup-20231127-final
For Windows:
aws elasticache delete-serverless-cache ^ --serverless-cache-name
myserverlesscache
^ --final-snapshot-namebkup-20231127-final
For more information, see delete-serverless-cache in the Amazon CLI Command Reference.