Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

Restore Database on a weekly basis

$
0
0

Hi guys, 

I'm looking for a way to restore a database once a week automatically(i.e every Monday). I take the backup in one server and need to restore it in a second one. The backup comprises of four files (.mdf, .ldf, .ndf and .fs). The script would read the directory and choose the latest backup to restore it but I haven't found the right script to restore the database with all the files included in the .bak whether using powershell or T-SQL.

Any help will be be greatly appreciated.


Viewing all articles
Browse latest Browse all 5123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>