Copying a snapshot - Amazon MemoryDB for Redis
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Copying a snapshot

You can make a copy of any snapshot, whether it was created automatically or manually. When copying a snapshot, the same KMS encryption key as the source is used for the target unless specifically overridden. You can also export your snapshot so you can access it from outside MemoryDB. For guidance on exporting your snapshot, see Exporting a snapshot.

The following procedures show you how to copy a snapshot.

To copy a snapshot (console)
  1. Sign in to the Amazon Web Services Management Console and open the MemoryDB for Redis console at https://console.amazonaws.cn/memorydb/.

  2. To see a list of your snapshots, from the left navigation pane choose Snapshots.

  3. From the list of snapshots, choose the radio button to the left of the name of the snapshot you want to copy.

  4. Choose Actions and then choose Copy.

  5. In the Copy snapshot page, do the following:

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

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

    3. Choose whether to use the default Amazon KMS encryption key or a use a custom key. For more information, see In-transit encryption (TLS) in MemoryDB.

    4. Optionally, you can also add tags to the snapshot copy.

    5. Choose Copy.

To copy a snapshot, use the copy-snapshot operation.

Parameters
  • --source-snapshot-name – Name of the snapshot to be copied.

  • --target-snapshot-name – Name of the snapshot's copy.

  • --target-bucket – Reserved for exporting a snapshot. Do not use this parameter when making a copy of a snapshot. For more information, see Exporting a snapshot.

The following example makes a copy of an automatic snapshot.

For Linux, OS X, or Unix:

aws memorydb copy-snapshot \ --source-snapshot-name automatic.my-primary-2021-03-27-03-15 \ --target-snapshot-name my-snapshot-copy

For Windows:

aws memorydb copy-snapshot ^ --source-snapshot-name automatic.my-primary-2021-03-27-03-15 ^ --target-snapshot-name my-snapshot-copy

For more information, see copy-snapshot.

To copy a snapshot, use the copy-snapshot operation with the following parameters:

Parameters
  • SourceSnapshotName – Name of the snapshot to be copied.

  • TargetSnapshotName – Name of the snapshot's copy.

  • TargetBucket – Reserved for exporting a snapshot. Do not use this parameter when making a copy of a snapshot. For more information, see Exporting a snapshot.

The following example makes a copy of an automatic snapshot.

https://memory-db.us-east-1.amazonaws.com/ ?Action=CopySnapshot &SourceSnapshotName=automatic.my-primary-2021-03-27-03-15 &TargetSnapshotName=my-snapshot-copy &SignatureVersion=4 &SignatureMethod=HmacSHA256 &Timestamp=20210801T220302Z &Version=2021-01-01 &X-Amz-Algorithm=Amazon4-HMAC-SHA256 &X-Amz-Date=20210801T220302Z &X-Amz-SignedHeaders=Host &X-Amz-Expires=20210801T220302Z &X-Amz-Credential=<credential> &X-Amz-Signature=<signature>

For more information, see CopySnapshot.