CmdID / aws / aws redshift
aws redshift copy-cluster-snapshot
Copies the specified automated cluster snapshot to a new manual cluster snapshot. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To copy a cluster snapshot
The following copy-cluster-snapshot example creates a copy of the automated snapshot cm:examplecluster-2013-01-22-19-27-58 named my-saved-snapshot-copy. By default, the output is in JSON format.
aws redshift copy-cluster-snapshot --source-snapshot-identifier cm:examplecluster-2013-01-22-19-27-58 --target-snapshot-identifier my-saved-snapshot-copyIdentify--source-snapshot-identifierThe identifier for the source snapshot.--target-snapshot-identifierThe identifier given to the new manual snapshot.Its output
{
"Snapshot": {
"Status": "available",
"SnapshotCreateTime": "2013-01-22T19:27:58.931Z",
"AvailabilityZone": "us-west-2c",
"ClusterVersion": "1.0",
"MasterUsername": "adminuser",
"DBName": "dev",
"ClusterCreateTime": "2013-01-22T19:23:59.368Z",
"SnapshotType": "manual",
"NodeType": "dw.hs1.xlarge",
"ClusterIdentifier": "examplecluster",
"Port": 5439,
"NumberOfNodes": 2,
"SnapshotIdentifier": "my-saved-snapshot-copy"
}
}For more information, see Copying an automated snapshot in the Amazon Redshift Management Guide.
Options
--manual-snapshot-retention-periodThe number of days that a manual snapshot is retained.--source-snapshot-cluster-identifierThe identifier of the cluster the source snapshot was created from.--source-snapshot-identifierThe identifier for the source snapshot.--target-snapshot-identifierThe identifier given to the new manual snapshot.