无法使用 RDS SQL 服务器从 S3 进行还原
Unable to do a Restore from S3 with RDS SQL Server
我正在尝试从 AWS RDS(SQL 服务器)中的 S3 进行恢复。在页面上的时候我可以select引擎,我selectSQL服务器。但是select版本的选项都变灰了,我不能select一个然后继续。您可以从下面的屏幕截图中看到这一点。请注意,如果我只是尝试在 RDS 中创建 SQL Server 的实例,则不会发生这种情况。然后我可以 select 一个版本。
看起来您不能直接从控制台执行此操作,数据库必须已经存在。
Restoring a Database
To restore your database, you call the rds_restore_database stored
procedure.
The following parameters are required:
@restore_db_name – The name of the database to restore.
@s3_arn_to_restore_from – The Amazon S3 bucket that contains the backup file, and the name of the file.
The following parameters are optional:
@kms_master_key_arn – If you encrypted the backup file, the key to use to decrypt the file.
Example Without Encryption
exec msdb.dbo.rds_restore_database
@restore_db_name='database_name',
@s3_arn_to_restore_from='arn:aws:s3:::bucket_name/file_name_and_extension';
Example With Encryption
exec msdb.dbo.rds_restore_database
@restore_db_name='database_name',
@s3_arn_to_restore_from='arn:aws:s3:::bucket_name/file_name_and_extension',
@kms_master_key_arn='arn:aws:kms:region:account-id:key/key-id';
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.Procedural.Importing.html
我正在尝试从 AWS RDS(SQL 服务器)中的 S3 进行恢复。在页面上的时候我可以select引擎,我selectSQL服务器。但是select版本的选项都变灰了,我不能select一个然后继续。您可以从下面的屏幕截图中看到这一点。请注意,如果我只是尝试在 RDS 中创建 SQL Server 的实例,则不会发生这种情况。然后我可以 select 一个版本。
看起来您不能直接从控制台执行此操作,数据库必须已经存在。
Restoring a Database
To restore your database, you call the rds_restore_database stored procedure.
The following parameters are required:
@restore_db_name – The name of the database to restore. @s3_arn_to_restore_from – The Amazon S3 bucket that contains the backup file, and the name of the file.
The following parameters are optional:
@kms_master_key_arn – If you encrypted the backup file, the key to use to decrypt the file.
Example Without Encryption
exec msdb.dbo.rds_restore_database @restore_db_name='database_name', @s3_arn_to_restore_from='arn:aws:s3:::bucket_name/file_name_and_extension';
Example With Encryption
exec msdb.dbo.rds_restore_database @restore_db_name='database_name', @s3_arn_to_restore_from='arn:aws:s3:::bucket_name/file_name_and_extension', @kms_master_key_arn='arn:aws:kms:region:account-id:key/key-id';
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.Procedural.Importing.html