意图是导出RDS并将数据加载到本地mssql DB。
尝试备份rds服务器时出现以下错误。
用于启动的SQL语句:
USE [msdb]
GO
DECLARE @return_value int
EXEC @return_value = [dbo].[rds_backup_database]
@source_db_name = 'abcd',
@S3_arn_to_backup_to = 'arn:aws:s3:::abcd/test_09_May.bak',
@KMS_master_key_arn = NULL,
@overwrite_S3_backup_file = NULL
SELECT 'Return Value' = @return_value
GO
查询状态:
exec msdb.dbo.rds_task_status
EXEC msdb.dbo.rds_task_status
@db_name = 'abcd', -- sysname
@task_id = 7 -- int
exec msdb.dbo.rds_task_status @task_id = 7
exec msdb.dbo.rds_task_status @db_name='abcd'
失败原因 - taskinfo专栏:
1. Aborted the task because of a task failure or an overlap with your preferred backup window for RDS automated backup.
A WebException with status ConnectFailure was thrown.
2. Aborted the task because of a task failure or an overlap with your preferred backup window for RDS automated backup.
Access Denied
答案 0 :(得分:3)
这个问题都与S3存储桶有关:
对于第一个问题,您要备份的s3存储桶与RDS实例不在同一区域
对于第二个问题,Option组中使用的角色对相应的存储桶没有权限。转到安全凭证 - >角色 - >选择策略,然后进行编辑。
答案 1 :(得分:0)
我建议您使用数据库导出,RDS不允许在AWS环境之外导出。