本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
監控快照匯出
您可以使用 AWS Management Console、或監視資料庫快照匯出RDSAPI。 AWS CLI
監控資料庫快照匯出
-
登錄 AWS Management Console 並在打開 Amazon RDS 控制台https://console.aws.amazon.com/rds/
。 -
在導覽窗格中,選擇 Exports in Amazon S3 (在 Amazon S3 中匯出)。
資料庫快照匯出會在 Source type (來源類型) 資料欄中指出。匯出狀態會顯示在 Status (狀態) 資料欄中。
-
若要檢視特定快照匯出的詳細資訊,請選擇匯出任務。
若要使用監視資料庫快照匯出 AWS CLI,請使用describe-export-tasks指令。
以下範例示範如何顯示您所有快照匯出的目前資訊。
aws rds describe-export-tasks { "ExportTasks": [ { "Status": "CANCELED", "TaskEndTime": "2019-11-01T17:36:46.961Z", "S3Prefix": "something", "ExportTime": "2019-10-24T20:23:48.364Z", "S3Bucket": "
amzn-s3-demo-bucket
", "PercentProgress": 0, "KmsKeyId": "arn:aws:kms:AWS_Region
:123456789012:key/K7MDENG/bPxRfiCYEXAMPLEKEY", "ExportTaskIdentifier": "anewtest", "IamRoleArn": "arn:aws:iam::123456789012:role/export-to-s3", "TotalExtractedDataInGB": 0, "TaskStartTime": "2019-10-25T19:10:58.885Z", "SourceArn": "arn:aws:rds:AWS_Region
:123456789012:snapshot:parameter-groups-test" }, { "Status": "COMPLETE", "TaskEndTime": "2019-10-31T21:37:28.312Z", "WarningMessage": "{\"skippedTables\":[],\"skippedObjectives\":[],\"general\":[{\"reason\":\"FAILED_TO_EXTRACT_TABLES_LIST_FOR_DATABASE\"}]}", "S3Prefix": "", "ExportTime": "2019-10-31T06:44:53.452Z", "S3Bucket": "amzn-s3-demo-bucket1
", "PercentProgress": 100, "KmsKeyId": "arn:aws:kms:AWS_Region
:123456789012:key/2Zp9Utk/h3yCo8nvbEXAMPLEKEY", "ExportTaskIdentifier": "thursday-events-test", "IamRoleArn": "arn:aws:iam::123456789012:role/export-to-s3", "TotalExtractedDataInGB": 263, "TaskStartTime": "2019-10-31T20:58:06.998Z", "SourceArn": "arn:aws:rds:AWS_Region
:123456789012:snapshot:rds:example-1-2019-10-31-06-44" }, { "Status": "FAILED", "TaskEndTime": "2019-10-31T02:12:36.409Z", "FailureCause": "The S3 bucket my-exports isn't located in the current AWS Region. Please, review your S3 bucket name and retry the export.", "S3Prefix": "", "ExportTime": "2019-10-30T06:45:04.526Z", "S3Bucket": "amzn-s3-demo-bucket2
", "PercentProgress": 0, "KmsKeyId": "arn:aws:kms:AWS_Region
:123456789012:key/2Zp9Utk/h3yCo8nvbEXAMPLEKEY", "ExportTaskIdentifier": "wednesday-afternoon-test", "IamRoleArn": "arn:aws:iam::123456789012:role/export-to-s3", "TotalExtractedDataInGB": 0, "TaskStartTime": "2019-10-30T22:43:40.034Z", "SourceArn": "arn:aws:rds:AWS_Region
:123456789012:snapshot:rds:example-1-2019-10-30-06-45" } ] }
如要顯示特定快照匯出的相關資訊,請在 --export-task-identifier
命令中包含 describe-export-tasks
選項。如要篩選輸出,請包含 --Filters
選項。如需更多選項,請參閱describe-export-tasks指令。
若要顯示使用 Amazon 進行資料庫快照匯出的相關資訊 RDSAPI,請使用DescribeExportTasks操作。
若要追蹤匯出工作流程的完成或起始其他工作流程,您可以訂閱 Amazon Simple Notification Service 主題。有關 Amazon 的更多信息SNS,請參閱使用 Amazon RDS 事件通知。