+ Post New Thread
Results 1 to 3 of 3
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 ...
  1. #1
    sch
    sch is offline

    Join Date
    Oct 2009
    Location
    Norway
    Posts
    23
    Thank Post
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    10

    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

  2. #2

    Join Date
    Apr 2008
    Posts
    853
    Thank Post
    111
    Thanked 112 Times in 108 Posts
    Rep Power
    45
    I dont understand why you re scripting this? you can do dpm database backup in dpm

  3. #3
    sch
    sch is offline

    Join Date
    Oct 2009
    Location
    Norway
    Posts
    23
    Thank Post
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    10
    Quote Originally Posted by irsprint84 View Post
    I dont understand why you re scripting this? you can do dpm database backup in dpm
    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.

SHARE:
+ Post New Thread

Similar Threads

  1. For those using Veeam \ DPM 2010
    By gshaw in forum Thin Client and Virtual Machines
    Replies: 0
    Last Post: 28th February 2011, 10:37 AM
  2. DPM 2010 keeps dopping out
    By jonathon28 in forum Windows Server 2008 R2
    Replies: 0
    Last Post: 11th February 2011, 12:45 PM
  3. DPM 2010 Backup - Cookie Monster
    By HCC in forum Windows
    Replies: 7
    Last Post: 13th September 2010, 02:54 PM
  4. vbscript to copy a folder & delete a folder
    By MicrodigitUK in forum Scripts
    Replies: 2
    Last Post: 29th January 2009, 12:43 PM
  5. Replies: 6
    Last Post: 20th October 2005, 06:48 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •