Today I want to share how I’m keeping a copy of instances’ configurations using dbatools .
Chrissy LeMaire ( B | T ) wrote about it before on the Simplifying disaster recovery with dbatools blog post. In this post, I will add one step and save the output on a GIT repository.
Pre-requirements
- You need a GIT repository
- GIT tools installed on the server where you are running the script so you can commit your changes
- dbatools
- A list or a place to get all instances that you want to run the export
Preparation
Git repository
Clone your repository to a location where dbatools can write to.