- Newest
- Most votes
- Most comments
I am using this to back up my DB to s3
Use [dms_sample]
GO
BACKUP DATABASE [dms_sample] TO
DISK = 'C:\Backup\dms_sample.bak'
WITH NOFORMAT, NOINIT,
NAME = 'Full Backup of dms_sample', SKIP, NOREWIND, NOUNLOAD, STATS = 10
Go
and using this command to upload it
aws --profile northwinddba s3 cp C:\Backup\northwind.bak s3://northwind1/
it was successful in the upload. I can see the .bak file in the my bucket.
When I go to the option group
and then select my bucket as such :
when I go to the databases tab, there isn't anything
You haven’t said that you have executed a backup or restore via SQL management studio to/from the S3 bucket. Backups and restores do not automatically occur. That is a manual step or a job via SQL agent.
Please confirm how you are initiating the backup/restore to or from S3
To restore a bak file from S3 please see restore steps from https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.Procedural.Importing.html
Relevant content
- Accepted Answerasked 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 3 years ago
You need to create the RDS instance first and then connect to the MS SQL server using tools such as sql management studio and execute a restore using the following. Please see restore steps
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/SQLServer.Procedural.Importing.html