I need help with automating the process of refreshing out Dev and QA environments with production data. We run our backups from the primary and store them on a network share which is then accessed by a powershell script being handled by a windows scheduled task that restores the database. This is being done currently for our Dev environment which is currently a single instance. However, recently we have add a QA environment (this is where it gets a little tricky).Our QA environment is a replica of our current production. Currently in production we have four (4) servers that are clustered together using AlwaysOn. This is make sure when we do testing, we are testing against similar setups. The issue I have is with the availability groups being in place I am unable to do a restore the databases in the QA with out removing the databases from the group and re-adding them. Is there a way I can automate this process so that we can keep the environments in sync? Or will I have to script some way of removing the database from the availability group and re add them? I would also like to know how I could bring in partial data into any environment as well. Currently we have a few databases that are pretty large and we don't need to have all of the data in the subsequent environments. Any advice will be greatly appreciated. I am also open to the idea of trying some other method to accomplish this process.
↧