To restore a Database from S3, we will be utilizing the msdb.dbo.rds_restore_database stored procedure located under the msdb system database.
For the purposes of the demo, we will be Restoring without Encryption
Syntax:
exec msdb.dbo.rds_restore_database
@restore_db_name='sampledb',
@s3_arn_to_restore_from='arn:aws:s3:::bucket_name/file_name_and_extension';
Open up a New Query Window, and using the example above, execute the aforementioned stored procedure under the msdb database:
Once executed, the task will be queued, you can then check the status by using the msdb.dbo.rds_task_status stored procedure:
Syntax:
exec msdb.dbo.rds_task_status @db_name='database_name';
exec msdb.dbo.rds_cancel_task @task_id=1234;