User guide

If you select a smaller number of days to retain snapshots in the destination region, any automated
snapshots that were taken before the new retention period will be deleted. If you select a larger
number of days to retain snapshots in the destination region, the retention period for existing automated
snapshots will be extended by the difference between the old value and the new value.
5. Click Save Configuration.
Disabling Cross-Region Snapshot Copy
You can disable cross-region snapshot copy for a cluster when you no longer want Amazon Redshift to
copy snapshots to a destination region.
To disable cross-region snapshot copy for a cluster
1. Sign into the AWS Management Console and open the Amazon Redshift console at https://
console.aws.amazon.com/redshift.
2. In the navigation pane, click Clusters.
3. Click Backup, and then click Configure Cross Region Snapshots to open the Configure Cross
Region Snapshots dialog box.
4. In the Enable Cross Region Snapshots box, click No.
5. Click Save Configuration.
Managing Snapshots Using the AWS SDK for
Java
The following example demonstrates these common operations involving a snapshot:
Creating a manual cluster snapshot of a cluster.
Displaying information about all the snapshots of a cluster.
Deleting manual snapshots of a cluster.
In this example, a snapshot of the cluster is initiated. When the snapshot is successfully created, all
manual snapshots for the cluster that were created before the new snapshot are deleted.When creation
of the manual snapshot is initiated, the snapshot is not immediately available. Therefore, this example
uses a loop to poll for the status of the snapshot by calling the describeClusterSnapshot method. It
normally takes a few moments for a snapshot to become available after initiation. For more information
about snapshots, see Amazon Redshift Snapshots (p. 82).
For step-by-step instructions to run the following example, see Running Java Examples for Amazon
Redshift Using Eclipse (p. 130).You need to update the code and provide a cluster identifier.
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.auth.PropertiesCredentials;
import com.amazonaws.services.redshift.AmazonRedshiftClient;
import com.amazonaws.services.redshift.model.CreateClusterSnapshotRequest;
import com.amazonaws.services.redshift.model.DeleteClusterSnapshotRequest;
import com.amazonaws.services.redshift.model.DescribeClusterSnapshotsRequest;
API Version 2012-12-01
94
Amazon Redshift Management Guide
Disabling Cross-Region Snapshot Copy