To restore a Database from S3, we will be utilizing the _msdb.dbo.rds_restoredatabase 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_taskstatus stored procedure:
Syntax:
exec msdb.dbo.rds_task_status @db_name='database_name';
* To cancel any given task, you can use the _msdb.dbo.rds_canceltask stored procedure
Syntax:
exec msdb.dbo.rds_cancel_task @task_id=1234;