Refresh Databases
-
Refresh Databases
Posted by Greg Alford on 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
—————————— -
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.
——————————
Kyle Hardin
NAV Developer
ArcherPoint Inc.
Duluth GA
——————————
——————————————- -
Thanks – Unfortunately, that link does not work.?
——————————
Gregory Alford
Director of Technical Resources
Tri Star Metals LLC
Aurora IL
——————————
——————————————- -
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
——————————
——————————————- -
Yes I can .?
——————————
Gregory Alford
Director of Technical Resources
Tri Star Metals LLC
Aurora IL
——————————
——————————————- -
– 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
——————————
——————————————- -
– 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
——————————
——————————————- -
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
——————————
——————————————- -
– 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
——————————
——————————————- -
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.
——————————
Kyle Hardin
NAV Developer
ArcherPoint Inc.
Duluth GA
——————————
——————————————- -
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
——————————
——————————————- -
——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
—————————— -
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
——————————
——————————————- -
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.