监控数据库集群导出任务
您可以使用 AWS Management Console、AWS CLI 或 RDS API 监控数据库集群导出。
监控数据库集群导出
登录 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": "2022-11-01T17:36:46.961Z", "S3Prefix": "something", "S3Bucket": "
amzn-s3-demo-bucket
", "PercentProgress": 0, "KmsKeyId": "arn:aws:kms:us-west-2
:123456789012:key/K7MDENG/bPxRfiCYEXAMPLEKEY", "ExportTaskIdentifier": "anewtest", "IamRoleArn": "arn:aws:iam::123456789012:role/export-to-s3", "TotalExtractedDataInGB": 0, "SourceArn": "arn:aws:rds:us-west-2
:123456789012:cluster:parameter-groups-test" }, { "Status": "COMPLETE", "TaskStartTime": "2022-10-31T20:58:06.998Z", "TaskEndTime": "2022-10-31T21:37:28.312Z", "WarningMessage": "{\"skippedTables\":[],\"skippedObjectives\":[],\"general\":[{\"reason\":\"FAILED_TO_EXTRACT_TABLES_LIST_FOR_DATABASE\"}]}", "S3Prefix": "", "S3Bucket": "amzn-s3-demo-bucket1
", "PercentProgress": 100, "KmsKeyId": "arn:aws:kms:us-west-2
:123456789012:key/2Zp9Utk/h3yCo8nvbEXAMPLEKEY", "ExportTaskIdentifier": "thursday-events-test", "IamRoleArn": "arn:aws:iam::123456789012:role/export-to-s3", "TotalExtractedDataInGB": 263, "SourceArn": "arn:aws:rds:us-west-2
:123456789012:cluster:example-1-2019-10-31-06-44" }, { "Status": "FAILED", "TaskEndTime": "2022-10-31T02:12:36.409Z", "FailureCause": "The S3 bucketamzn-s3-demo-bucket2
isn't located in the current AWS Region. Please, review your S3 bucket name and retry the export.", "S3Prefix": "", "S3Bucket": "amzn-s3-demo-bucket2
", "PercentProgress": 0, "KmsKeyId": "arn:aws:kms:us-west-2
:123456789012:key/2Zp9Utk/h3yCo8nvbEXAMPLEKEY", "ExportTaskIdentifier": "wednesday-afternoon-test", "IamRoleArn": "arn:aws:iam::123456789012:role/export-to-s3", "TotalExtractedDataInGB": 0, "SourceArn": "arn:aws:rds:us-west-2
:123456789012:cluster:example-1-2019-10-30-06-45" } ] }
要显示有关特定导出任务的信息,请在 describe-export-tasks
命令中包含 --export-task-identifier
选项。要筛选输出,请包括 --Filters
选项。有关更多选项,请参阅 describe-export-tasks 命令。
要使用 Amazon RDS API 显示有关数据库集群导出的信息,请使用 DescribeExportTasks 操作。
要跟踪导出工作流的完成情况或启动其他工作流,您可以订阅 Amazon Simple Notification Service 主题。有关 Amazon SNS 的更多信息,请参阅 使用 Amazon RDS 事件通知。