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

Copying a Backup

You can make 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 procedures show you how to copy a backup.

Copying a Backup (Console)

To copy a backup (console)

  1. Sign in to the AWS Management Console and open the ElastiCache console at https://console.aws.amazon.com/elasticache/.

  2. On the ElastiCache console dashboard, choose Backups.

  3. In the list of backups, choose the box to the left of the name of the backup you want to copy.

  4. Choose Copy.

  5. In the Create Copy of the Backup? dialog box, do the following:

    1. In the New backup name box, type a name for your new backup.

    2. Leave the optional Target S3 Bucket box blank. This field should only be used to export your backup and requires special S3 permissions. For information on exporting a backup, see Exporting a Backup.

    3. Choose Copy.

Copying a Backup (AWS CLI)

To copy a backup, 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, macOS, or Unix:

Copy
aws elasticache copy-snapshot \ --source-snapshot-name automatic.my-redis-primary-2014-03-27-03-15 \ --target-snapshot-name my-backup-copy

For Windows:

Copy
aws elasticache copy-snapshot ^ --source-snapshot-name automatic.my-redis-primary-2014-03-27-03-15 ^ --target-snapshot-name my-backup-copy

For more information, see copy-snapshot in the AWS CLI.

Copying a Backup (ElastiCache API)

To copy a backup, use the CopySnapshot operation with the following parameters:

Parameters

  • SourceSnapshotName – Name of the backup to be copied.

  • TargetSnapshotName – Name of the backup's copy.

  • TargetBucket – 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.

Copy
https://elasticache.us-west-2.amazonaws.com/ ?Action=CopySnapshot &SourceSnapshotName=automatic.my-redis-primary-2014-03-27-03-15 &TargetSnapshotName=my-backup-copy &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20141201T220302Z &Version=2014-12-01 &X-Amz-Algorithm=AWS4-HMAC-SHA256 &X-Amz-Date=20141201T220302Z &X-Amz-SignedHeaders=Host &X-Amz-Expires=20141201T220302Z &X-Amz-Credential=<credential> &X-Amz-Signature=<signature>

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