Scripts Thread, DPM 2010, copy database files to folder with powershell in Coding and Web Development; Hi! I am a total novice with powershell, but have been given the task by my manager to create a ...
13th April 2011, 11:21 AM #1
- Rep Power
DPM 2010, copy database files to folder with powershell
Hi! I am a total novice with powershell, but have been given the task by my manager to create a script wich selects the newest replica of a database in dpm, and copies the .ldf and .mdf files to an network share.
I have managed to scramble the commands wich always selects the newest replica. But i can't figure out what the command to select the files within that replica, and then copy them to the network share. Furthermore, they have to overwrite existing files everytime they get copied.
You can easily do this via the GUI, but the client who needs this setup wants it to be automated, as it has to be done once every 24 hours.
Does anyone have a script like this lying around, or could whip something up in a jiffy? :P
IDG Tech News
13th April 2011, 11:38 AM #2
I dont understand why you re scripting this? you can do dpm database backup in dpm
13th April 2011, 12:50 PM #3
- Rep Power
Yes, but as far as i understand and see, you can't create and automated restore-job in the GUI. You have to do that by script? I did come across a script of something similar after i posted this thread, so i will try it out.
Originally Posted by irsprint84
By gshaw in forum Thin Client and Virtual Machines
Last Post: 28th February 2011, 11:37 AM
By jonathon28 in forum Windows Server 2008 R2
Last Post: 11th February 2011, 01:45 PM
Last Post: 13th September 2010, 03:54 PM
By MicrodigitUK in forum Scripts
Last Post: 29th January 2009, 01:43 PM
By tosca925 in forum Windows
Last Post: 20th October 2005, 07:48 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)