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.