本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
使用複製未加密的資料庫叢集快照 AWS CLI 或 Amazon RDS API
使用下列各節中的程序來複製未加密的資料庫叢集快照,方法是使用 AWS Management Console, AWS CLI,或 Amazon RDS API。
若要取消已開始進行的複製操作,請在資料庫叢集快照處於 copying (複製中) 狀態時,刪除 --target-db-cluster-snapshot-identifier
或 TargetDBClusterSnapshotIdentifier
所識別的目標資料庫叢集快照。
使用複製資料庫叢集快照 AWS Management Console,請參閱使用複製資料庫叢集快照 AWS Management Console。
若要複製資料庫叢集快照,請使用 AWS CLI copy-db-cluster-snapshot指令。如果您要將快照複製到另一個快照 AWS 區域」中,執行指令 AWS 區域 快照要複製到的目的地。
下列選項用來複製未加密的資料庫叢集快照:
-
--source-db-cluster-snapshot-identifier
– 要複製之資料庫叢集快照的識別符。如果您要將快照複製到另一個快照 AWS 區域,此識別碼必須是來源的ARN格式 AWS 區域. -
--target-db-cluster-snapshot-identifier
– 資料庫叢集快照之新副本的識別符。
下面的代碼創建一個arn:aws:rds:us-east-1:123456789012:cluster-snapshot:aurora-cluster1-snapshot-20130805
名為myclustersnapshotcopy
數據庫集群快照的副本 AWS 區域 在其中運行命令。建立副本時,原始快照的所有標籤會複製到快照副本。
範例
用於 Linux, macOS,或 Unix:
aws rds copy-db-cluster-snapshot \ --source-db-cluster-snapshot-identifier
arn:aws:rds:us-east-1:123456789012:cluster-snapshot:aurora-cluster1-snapshot-20130805
\ --target-db-cluster-snapshot-identifiermyclustersnapshotcopy
\ --copy-tags
用於 Windows:
aws rds copy-db-cluster-snapshot ^ --source-db-cluster-snapshot-identifier
arn:aws:rds:us-east-1:123456789012:cluster-snapshot:aurora-cluster1-snapshot-20130805
^ --target-db-cluster-snapshot-identifiermyclustersnapshotcopy
^ --copy-tags
若要複製資料庫叢集快照,請使用 Amazon RDS API C opyDBCluster 快照操作。如果您要將快照複製到另一個快照 AWS 區域」中,執行中的動作 AWS 區域 快照要複製到的目的地。
下列參數用來複製未加密的資料庫叢集快照:
-
SourceDBClusterSnapshotIdentifier
– 要複製之資料庫叢集快照的識別符。如果您要將快照複製到另一個快照 AWS 區域,此識別碼必須是來源的ARN格式 AWS 區域. -
TargetDBClusterSnapshotIdentifier
– 資料庫叢集快照之新副本的識別符。
下列程式碼會在 美國西部 (加州北部) 區域中建立快照 arn:aws:rds:us-east-1:123456789012:cluster-snapshot:aurora-cluster1-snapshot-20130805
的複本,名稱為 myclustersnapshotcopy
。建立副本時,原始快照的所有標籤會複製到快照副本。
範例
https://rds.us-west-1.amazonaws.com/ ?Action=CopyDBClusterSnapshot &CopyTags=
true
&SignatureMethod=HmacSHA256 &SignatureVersion=4 &SourceDBSnapshotIdentifier=arn%3Aaws%3Ards%3Aus-east-1%3A123456789012%3Acluster-snapshot%3Aaurora-cluster1-snapshot-20130805
&TargetDBSnapshotIdentifier=myclustersnapshotcopy
&Version=2013-09-09 &X-Amz-Algorithm=AWS4-HMAC-SHA256 &X-Amz-Credential=AKIADQKE4SARGYLE/20140429/us-west-1/rds/aws4_request &X-Amz-Date=20140429T175351Z &X-Amz-SignedHeaders=content-type;host;user-agent;x-amz-content-sha256;x-amz-date &X-Amz-Signature=9164337efa99caf850e874a1cb7ef62f3cea29d0b448b9e0e7c53b288ddffed2