Copying backups
You can create a copy of any backup, whether it was created automatically or manually. You can also export your backup so you can access it from outside ElastiCache. For guidance on exporting your backup, see Exporting a backup.
The following steps show you how to copy a backup.
To copy a backup (console)
-
Sign in to the Amazon Web Services Management Console and open the ElastiCache console at https://console.amazonaws.cn/elasticache/
. -
To see a list of your backups, from the left navigation pane choose Backups.
-
From the list of backups, choose the box to the left of the name of the backup you want to copy.
-
Choose Actions then Copy.
-
In the New backup name box, type a name for your new backup.
-
Choose Copy.
To copy a backup of a serverless cache, use the copy-serverless-cache-snapshot
operation.
Parameters
-
--source-serverless-cache-snapshot-name
– Name of the backup to be copied. -
--target-serverless-cache-snapshot-name
– Name of the backup's copy.
The following example makes a copy of an automatic backup.
For Linux, OS X, or Unix:
aws elasticache copy-serverless-cache-snapshot \ --source-serverless-cache-snapshot-name
automatic.my-cache-2023-11-27-03-15
\ --target-serverless-cache-snapshot-namemy-backup-copy
For Windows:
aws elasticache copy-serverless-cache-snapshot ^ --source-serverless-cache-snapshot-name
automatic.my-cache-2023-11-27-03-15
^ --target-serverless-cache-snapshot-namemy-backup-copy
For more information, see copy-serverless-cache-snapshot
in the Amazon CLI.
To copy a backup of a self-designed cluster, use the copy-snapshot
operation.
Parameters
-
--source-snapshot-name
– Name of the backup to be copied. -
--target-snapshot-name
– Name of the backup's copy. -
--target-bucket
– Reserved for exporting a backup. Do not use this parameter when making a copy of a backup. For more information, see Exporting a backup.
The following example makes a copy of an automatic backup.
For Linux, OS X, or Unix:
aws elasticache copy-snapshot \ --source-snapshot-name
automatic.my-redis-primary-2014-03-27-03-15
\ --target-snapshot-namemy-backup-copy
For Windows:
aws elasticache copy-snapshot ^ --source-snapshot-name
automatic.my-redis-primary-2014-03-27-03-15
^ --target-snapshot-namemy-backup-copy
For more information, see copy-snapshot
in the Amazon CLI.