Refresh Databases

  • Posted by Greg Alford on April 14, 2020 at 9:21 am
    • Gregory Alford

      Member

      April 14, 2020 at 9:21 AM

      We have 3 databases – LIVE, UAT, and DEVELOPMENT. We are on the spring 2019 edition of Business Central and we are on pure extensions.

      We have been paying our partner to refresh our UAT and DEV databases every few months. Does anyone have instructions on how we can do this ourselves? We run a full backup to the cloud daily and one locally every Sunday. So having a backup of LIVE to restore is not an issue.

      ——————————
      Gregory Alford
      Director of Technical Resources
      Tri Star Metals LLC
      Aurora IL
      ——————————

    • Kyle Hardin

      Member

      April 15, 2020 at 8:36 AM

      I am going to assume since you can do your own backups and restores that you are onprem.

      You’ll need to modify this to match your environment. It assumes two application servers and one SQL server. Run this from an elevated BC Administration Shell prompt. IT also renames a company so the new name has TEST at the beginning.

      You could also write a small codeunit that updates Company Information to change the System Indicator, or anything else that Test would need like clearing out credit card numbers, or removing a check signature BLOB. This can be called with PowerShell with Invoke-Codeunit.

      More detail is in this blog.

      https://www.archerpoint.com/blog/Posts/using-powershell-refresh-microsoft-dynamics-business-central-prem-test-database

      ——————————
      Kyle Hardin
      NAV Developer
      ArcherPoint Inc.
      Duluth GA
      ——————————
      ——————————————-

    • Gregory Alford

      Member

      April 15, 2020 at 8:57 AM

      Thanks – Unfortunately, that link does not work.?

      ——————————
      Gregory Alford
      Director of Technical Resources
      Tri Star Metals LLC
      Aurora IL
      ——————————
      ——————————————-

    • Kyle Hardin

      Member

      April 15, 2020 at 9:09 AM

      Can you get to the main blogs page?

      https://www.archerpoint.com/blog

      Then you can search for the word PowerShell.

      ——————————
      Kyle Hardin
      NAV Developer
      ArcherPoint Inc.
      Duluth GA
      ——————————
      ——————————————-

    • Gregory Alford

      Member

      April 15, 2020 at 9:12 AM

      Yes I can .?

      ——————————
      Gregory Alford
      Director of Technical Resources
      Tri Star Metals LLC
      Aurora IL
      ——————————
      ——————————————-

    • Gregory Alford

      Member

      April 15, 2020 at 9:28 AM

      – scrolling through the blog posts, I finally did find the How-to. Thanks for your help.Ā ?

      ——————————
      Gregory Alford
      Director of Technical Resources
      Tri Star Metals LLC
      Aurora IL
      ——————————
      ——————————————-

    • Gregory Alford

      Member

      April 15, 2020 at 9:34 AM

      – I just read through your post. There is nothing in there about how to handle the extensions. We have about 25 extensions in our system.Ā ?

      ——————————
      Gregory Alford
      Director of Technical Resources
      Tri Star Metals LLC
      Aurora IL
      ——————————
      ——————————————-

    • Kyle Hardin

      Member

      April 15, 2020 at 9:40 AM

      If you are doing a SQL backup and restore, then the extensions move with the database. The new / refreshed UAT database will have the exact same extensions as Production. Maybe I don’t understand the question.

      ——————————
      Kyle Hardin
      NAV Developer
      ArcherPoint Inc.
      Duluth GA
      ——————————
      ——————————————-

    • Gregory Alford

      Member

      April 15, 2020 at 9:53 AM

      – Our DEV never matches our LIVE and our UAT (User Acceptance Testing) will be different, too. I suppose the answer is to just reinstall the extensions that haven’t been moved to LIVE.?

      ——————————
      Gregory Alford
      Director of Technical Resources
      Tri Star Metals LLC
      Aurora IL
      ——————————
      ——————————————-

    • Kyle Hardin

      Member

      April 15, 2020 at 9:59 AM

      This article by Waldo describes how to use PowerShell to untangle the various app dependencies and make sure they get installed in the correct order. As for determining what belongs in DEV versus UAT or Live – that gets complicated and has to somehow be driven by your devops process. Depending on how you are doing your builds and branches, you might be able to do some sort of automated deployment.

      https://dynamicsuser.net/nav/b/waldo/posts/app-dependency-tree-import-your-apps-in-the-right-order-with-powershell

      ——————————
      Kyle Hardin
      NAV Developer
      ArcherPoint Inc.
      Duluth GA
      ——————————
      ——————————————-

    • Joe Draeger

      Member

      April 15, 2020 at 9:55 AM

      Hey Greg,

      It also might be worth asking your partner to provide a detailed instruction set on what they are doing.Ā  Paying them for the instruction write up may be a better value then paying them to to the refresh.

      ——————————
      Joe Draeger
      Ortho Molecular Products, Inc
      Woodstock IL
      ——————————
      ——————————————-

    • Mark Anderson

      Member

      April 15, 2020 at 11:33 AM

      Are you on prem or in cloud?

       

      If on prem, isn’t it just a straight forward backup and restore in SQL?

       

      Regards

       

      mark

       

       

       

      Mark Anderson | Director of ERP Systems

       

      Mobile 312.576.4332 | Direct 847.448.4202

       

       

      ——Original Message——

      We have 3 databases – LIVE, UAT, and DEVELOPMENT. We are on the spring 2019 edition of Business Central and we are on pure extensions.

      We have been paying our partner to refresh our UAT and DEV databases every few months. Does anyone have instructions on how we can do this ourselves? We run a full backup to the cloud daily and one locally every Sunday. So having a backup of LIVE to restore is not an issue.

      ——————————
      Gregory Alford
      Director of Technical Resources
      Tri Star Metals LLC
      Aurora IL
      ——————————

    • Gregory Alford

      Member

      April 15, 2020 at 3:17 PM

      We are on prem and it the extensions that are are being developed that I am concerned about.

      ——————————
      Gregory Alford
      Director of Technical Resources
      Tri Star Metals LLC
      Aurora IL
      ——————————
      ——————————————-

    • Kyle Hardin

      Member

      April 15, 2020 at 4:30 PM

      You will have to have a powershell script, one per database that knows where the extensions are located on the file system. There would have to be some manner of Live / UAT / Dev structure, where the extension versions appropriate to that particular database are stored. PowerShell will allow you to automate the extension deployment, but the developers have to be disciplined (or the DevOps output) to store to the correct directories.

      ——————————
      Kyle Hardin
      NAV Developer
      ArcherPoint Inc.
      Duluth GA
      ——————————
      ——————————————-

    Greg Alford replied 5 years, 5 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Refresh Databases’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!