CmdID / aws / aws memorydb
aws memorydb copy-snapshot
Makes a copy of an existing snapshot. AWS CLI reference
1 example 5 options Its page in the AWS CLI reference
Examples
To copy a snapshot
The following copy-snapshot example creates a copy of a snapshot.
aws memorydb copy-snapshot --source-snapshot-name my-cluster-snapshot --target-snapshot-name my-cluster-snapshot-copyIdentify--source-snapshot-nameThe name of an existing snapshot from which to make a copy.--target-snapshot-nameA name for the snapshot copy.Its output
{
"Snapshot": {
"Name": "my-cluster-snapshot-copy",
"Status": "creating",
"Source": "manual",
"ARN": "arn:aws:memorydb:us-west-2:491658xxxxxx:snapshot/my-cluster-snapshot-copy",
"ClusterConfiguration": {
"Name": "my-cluster",
"Description": " ",
"NodeType": "db.r6g.large",
"EngineVersion": "6.2",
"MaintenanceWindow": "wed:03:00-wed:04:00",
"Port": 6379,
"ParameterGroupName": "default.memorydb-redis6",
"SubnetGroupName": "my-sg",
"VpcId": "vpc-xx2574fc",
"SnapshotRetentionLimit": 0,
"SnapshotWindow": "04:30-05:30",
"NumShards": 2
}
}
}For more information, see Copying a snapshot in the MemoryDB User Guide.
Options
--kms-key-idThe ID of the KMS key used to encrypt the target snapshot.--source-snapshot-nameThe name of an existing snapshot from which to make a copy.--tagsA list of tags to be added to this resource.--target-bucketThe Amazon S3 bucket to which the snapshot is exported.--target-snapshot-nameA name for the snapshot copy.