RDS import from SQL backup












1















I'm migrating a SQL 2008 database from a corporate data center to an RDS intance on AWS.



So far I have performed a native backup which gave me a .bak file



Is it possible to simply upload this to S3 and 'restore' the .bak to a new RDS instance?



What's the best approach to take?










share|improve this question
















bumped to the homepage by Community 12 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    1















    I'm migrating a SQL 2008 database from a corporate data center to an RDS intance on AWS.



    So far I have performed a native backup which gave me a .bak file



    Is it possible to simply upload this to S3 and 'restore' the .bak to a new RDS instance?



    What's the best approach to take?










    share|improve this question
















    bumped to the homepage by Community 12 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1








      I'm migrating a SQL 2008 database from a corporate data center to an RDS intance on AWS.



      So far I have performed a native backup which gave me a .bak file



      Is it possible to simply upload this to S3 and 'restore' the .bak to a new RDS instance?



      What's the best approach to take?










      share|improve this question
















      I'm migrating a SQL 2008 database from a corporate data center to an RDS intance on AWS.



      So far I have performed a native backup which gave me a .bak file



      Is it possible to simply upload this to S3 and 'restore' the .bak to a new RDS instance?



      What's the best approach to take?







      backup import amazon-rds aws






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 14 '17 at 6:44









      Marco

      3,73231524




      3,73231524










      asked Jun 14 '17 at 2:49









      user126720user126720

      61




      61





      bumped to the homepage by Community 12 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 12 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Yes you can restore native backups and AWS has gone to the trouble of writing a very complete tutorial on how to backup from and restore to a RDS SQL Server instance.





          • restore backup



            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';




          There are some limitations to keep in mind and they have explained them all in detail. Some of those limitations are database size, and the types of instances you can restore to: The micro rds sql server instance for example doesn't support restores or backups.



          Also keep in mind the difference in versions between what you have locally and the RDS version you are restoring to. Amazon offers SQL Server 2008R2 and up.



          https://aws.amazon.com/rds/sqlserver/



          Craig






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "182"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f176228%2frds-import-from-sql-backup%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Yes you can restore native backups and AWS has gone to the trouble of writing a very complete tutorial on how to backup from and restore to a RDS SQL Server instance.





            • restore backup



              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';




            There are some limitations to keep in mind and they have explained them all in detail. Some of those limitations are database size, and the types of instances you can restore to: The micro rds sql server instance for example doesn't support restores or backups.



            Also keep in mind the difference in versions between what you have locally and the RDS version you are restoring to. Amazon offers SQL Server 2008R2 and up.



            https://aws.amazon.com/rds/sqlserver/



            Craig






            share|improve this answer




























              0














              Yes you can restore native backups and AWS has gone to the trouble of writing a very complete tutorial on how to backup from and restore to a RDS SQL Server instance.





              • restore backup



                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';




              There are some limitations to keep in mind and they have explained them all in detail. Some of those limitations are database size, and the types of instances you can restore to: The micro rds sql server instance for example doesn't support restores or backups.



              Also keep in mind the difference in versions between what you have locally and the RDS version you are restoring to. Amazon offers SQL Server 2008R2 and up.



              https://aws.amazon.com/rds/sqlserver/



              Craig






              share|improve this answer


























                0












                0








                0







                Yes you can restore native backups and AWS has gone to the trouble of writing a very complete tutorial on how to backup from and restore to a RDS SQL Server instance.





                • restore backup



                  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';




                There are some limitations to keep in mind and they have explained them all in detail. Some of those limitations are database size, and the types of instances you can restore to: The micro rds sql server instance for example doesn't support restores or backups.



                Also keep in mind the difference in versions between what you have locally and the RDS version you are restoring to. Amazon offers SQL Server 2008R2 and up.



                https://aws.amazon.com/rds/sqlserver/



                Craig






                share|improve this answer













                Yes you can restore native backups and AWS has gone to the trouble of writing a very complete tutorial on how to backup from and restore to a RDS SQL Server instance.





                • restore backup



                  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';




                There are some limitations to keep in mind and they have explained them all in detail. Some of those limitations are database size, and the types of instances you can restore to: The micro rds sql server instance for example doesn't support restores or backups.



                Also keep in mind the difference in versions between what you have locally and the RDS version you are restoring to. Amazon offers SQL Server 2008R2 and up.



                https://aws.amazon.com/rds/sqlserver/



                Craig







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jun 14 '17 at 5:25









                Craig EfreinCraig Efrein

                7,20784080




                7,20784080






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Database Administrators Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f176228%2frds-import-from-sql-backup%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Ronny Ackermann

                    Köttigit

                    MySQL 8.0.15 starts normally but any connection hangs