本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
建立多可用區域資料庫叢集快照
當您建立多可用區域資料庫叢集快照時,請務必找出要進行備份的多可用區域資料庫叢集,並為該資料庫叢集快照命名,以便您稍後可透過它進行還原。您也可以共用多可用區域資料庫叢集快照。如需說明,請參閱共享資料庫 快照。
您可以使用 AWS Management Console、或 RDS API 建立異地同步備份資料庫叢集快照。 AWS CLI
建立資料庫叢集快照
-
登入 AWS Management Console 並開啟 Amazon RDS 主控台,網址為 https://console.aws.amazon.com/rds/
。 -
在導覽窗格中,選擇 Databases (資料庫)。
-
在清單中,選擇您要擷取快照的多可用區域資料庫叢集。
-
針對 Actions (動作),選擇 Take snapshot (建立快照)。
Take DB Snapshot (建立資料庫快照) 視窗隨即顯示。
-
在 Snapshot name (快照名稱) 中輸入快照的名稱。
-
選擇 Take Snapshot (擷取快照)。
Snapshots (快照) 頁面隨即顯示,且新的多可用區域資料庫叢集快照的狀態顯示為 Creating
。之後,其狀態為 Available
,你可以看到其建立時間。
您可以使用具有下列選項的 AWS CLI create-db-cluster-snapshot指令來建立異地同步備份資料庫叢集快照:
-
--db-cluster-identifier
-
--db-cluster-snapshot-identifier
在此範例中,您為名為
的資料庫叢集建立名為 mymultiazdbclustersnapshot
的多可用區域資料庫叢集快照。mymultiazdbcluster
對於LinuxmacOS、或Unix:
aws rds create-db-cluster-snapshot \ --db-cluster-identifier
mymultiazdbcluster
\ --db-cluster-snapshot-identifiermymultiazdbclustersnapshot
在Windows中:
aws rds create-db-cluster-snapshot ^ --db-cluster-identifier
mymultiazdbcluster
^ --db-cluster snapshot-identifiermymultiazdbclustersnapshot
您可以使用具有下列參數的 Amazon RDS API 建立資料庫ClusterSnapshot操作來建立異地同步備份資料庫叢集快照:
-
DBClusterIdentifier
-
DBClusterSnapshotIdentifier
刪除多可用區域資料庫叢集快照
當您不再需要時,可以刪除由 Amazon RDS 管理的多可用區域資料庫快照。如需說明,請參閱 刪除資料庫快照。