June 20, 2019 at 5:49 pm
Hi,
We are using ola hallengren backup script to backup databases backups.
Now, I'm planning to automate copying those weekly full backups to a separate server and restore them. Can you please advise if there are any automated methods or scripts available to achieve this?
Thanks,
-jdc
June 20, 2019 at 8:01 pm
There are a lot of articles available on this site and web posts about refreshing databases. And there are articles on automating this. The articles basically say - create a restore script for your environment, create a script for cleaning up the users and then put these in an Agent job. That's how it's automated. You can search the scripts up here - search on restore or refresh and you will find quite a few examples. There are a lot of others if you search the internet for something like: automate database refresh sql server
And in addition, you will need to understand exactly what the scripts do so you can support them or make any necessary changes. Understanding what the scripts do, how they work and how you can change or modify them is critical.
Sue
June 20, 2019 at 8:38 pm
If prod is on a SAN, a lot of SAN vendors provide the ability to do "SAN Snapshots", which are virtually instantaneous.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 21, 2019 at 6:17 am
Hi,
take a look at dbatools.io
You can copy your databases with one script from Server A to Server B, with or without user etc.
Kind regards,
Andreas
June 21, 2019 at 6:57 am
This was removed by the editor as SPAM
June 21, 2019 at 4:17 pm
dbatools can do this, but SQL Server doesn't really have this. I guess the Data Tier Applications and the .bacpac extrat/import do this as well. I'd lean towards dbatools.
June 21, 2019 at 4:24 pm
I use datapump, expdp and impdp in Oracle to refresh lower environments. Do we have similar functionality in SQL Sever instead of backup/restore ?
Nothing the same but it also depends on what functionality you use with Data Pump. For functionality like the PL/SQL API or picking and choosing which objects/schemas and such, you'd probably need to use something like SSIS. If you are just using it for nothing other than the export, import than dbatools and Powershell would work.
Sue
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply