Schedule recovery of file folder Powershell from DPM

I can recover through the DPOM console this data attempting to create a PowerShell script to do the same thing.
Here is script :
$from = (Get-Date).adddays(-36500) –f "dd-MMMM-yyyy 00:01:00"
$to = Get-Date –f "dd-MMMM-yyyy HH:mm:ss"
$pg = Get-DPMProtectionGroup -DPMServerName BLANDPMS | where { $_.FriendlyName -eq "Domain Computers"}
$ds = Get-DPMDatasource $pg | where {$_.computer -eq "EVELYNNPC"}
$so = New-SearchOption -SearchString * -FromRecoveryPoint "$from" -ToRecoveryPoint "$to" -SearchDetail filesfolders -SearchType contains -Recursive -Location "C:\"
$ri = Get-DPMRecoverableItem -Datasource $ds -SearchOption $so
$ro = New-DPMRecoveryOption -TargetServer BLANDPMS -RecoveryLocation copytofolder -FileSystem -AlternateLocation "C:\Recovery\" -OverwriteType overwrite -RecoveryType Restore
restore-DPMRecoverableItem -RecoverableItem $ri -RecoveryOption $ro
here is results of the script when I run :
PS C:\psscripts> .\Recovery.ps1
restore-DPMRecoverableItem : The specified recovery options are not valid. (ID: 31095)
Check the parameters that you are passing to the cmdlet and ensure that these parameters correspond to the data source
type that you are attempting to recover.
At C:\psscripts\Recovery.ps1:16 char:1
+ restore-DPMRecoverableItem -RecoverableItem $ri -RecoveryOption $ro
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Restore-DPMRecoverableItem], DlsException
    + FullyQualifiedErrorId : InvalidRecoveryOptions,Microsoft.Internal.EnterpriseStorage.Dls.UI.Cmdlet.RecoveryCmdLet
   s.RecoverRecoverableItem
Variables :
PS C:\psscripts> $pg
Name                                                       
ProtectionMethod
Domain Computers                                        Short-term
using disk
PS C:\psscripts> $ds
Computer                                Name                                   
ObjectType
EVELYNNPC                               User data                              
Disconnected Client
PS C:\psscripts> $so
startPath        : C:\users\evelynn.domain\pictures\
searchParameters : Microsoft.Internal.EnterpriseStorage.Dls.UI.ObjectModel.OMCommon.SearchParameters
startTime        : 10/23/1914 9:00:09 AM
endTime          : 9/28/2014 9:00:17 AM
isRecursive      : True
PS C:\psscripts> $ri
054.JPG                       9/27/2014 1:11:52 PM          EVELYNNPC.domain.com\U... Disk
055.JPG                       9/27/2014 1:11:52 PM          EVELYNNPC.domain.com\U... Disk
056.JPG                       9/27/2014 1:11:52 PM          EVELYNNPC.domain.com\U... Disk
057.JPG                       9/27/2014 1:11:52 PM          EVELYNNPC.domain.com\U... Disk
058.JPG                       9/27/2014 1:11:52 PM          EVELYNNPC.domain.com\U... Disk
059.JPG                       9/27/2014 1:11:52 PM          EVELYNNPC.domain.com\U... Disk
060.JPG                       9/27/2014 1:11:52 PM          EVELYNNPC.domain.com\U... Disk
This contains 250 items did not list all here
PS C:\psscripts> $ro
DsmProperties             : Microsoft.Internal.EnterpriseStorage.Dls.XsdClasses.MTA.DsmPropertiesType
AlternateLocation         : C:\Recovery\
LibraryId                 : 00000000-0000-0000-0000-000000000000
SourceServer              :
TargetServer              : BLANDPMS.domain.com
RecoverToReplicaFromTape  : False
IsSANRecovery             : False
ReferencedRecoveryOptions :

I'm afraid not. The files that are online on your iDisk are your published site files only. While you can keep your website online indefinitely with these files, there is no way to import them back into iWeb for further editing and publishing.
The file that should have been backed up is called "Domain" and would have been on your hard drive in the following folder pathway: /Users/username/Library/Application Support/iWeb/
Everyone reading this should make a backup copy of this Domain file and put it in a safe place. Better safe then sorry.

Similar Messages

  • How to schedule the Batch file to run from task scheduler

    Hello Everyone,
    I have a batch file which kills the wscript.exe process, I am doing this manually, I need to schedule this batch file to run from task scheduler whenever the process wscript.exe reaches to specific numbers,  i.e if the wscript.exe process count in task
    manager reaches to 30,  the task schedular should execute this batch file,
    Is there a way to do so.
    dibu

    Hi,
    àI need to schedule
    this batch file to run from task scheduler whenever the process wscript.exe reaches to specific numbers.
    As I know, it will not help you to achieve this target via Scheduled Task. When configure Scheduled Task, there
    seems no Trigger option that help you specify this condition (process counts reaches to specific numbers) to trigger the batch file.
    You could consider that improve this batch file. Adding the
    Check function to the script will be a better option. For script issue, you can post it in the
    Official Scripting Guys Forum. I believe we will get a better assistance there.
    If any update, please feel free to let me know.
    Best regards,
    Justin Gu

  • How to make file folder structure from virtual folders

    lv 2013 sp1
    This is the layout of an example project, (please don't mind the horrible naming)
    When i create a source distribution.. no matter what settings I try, the preview is always like this:
    But I want the folder structure from the build to become as the virtual folder structure. is there any way of doing this without moving them by hand in the file explorer tab?
    Solved!
    Go to Solution.

    Unless you use auto-populating folders (which I don't like), the virtual folders are not meant to reflect the location on disk, so it certainly won't be automatic.
    I don't have experience with source distribution, but other build types have the option of configuring destination folders in the Destinations category and then assigning these destinations to items in the projects (including virtual folders, which then takes all the elements inside it) either in the same category or in the one under it, I can't check. I expect that you can do the same in a source distribution.
    Try to take over the world!

  • Disk utility recovery of files after deleting from external hard drive?

    I had downloaded some files to add to an external hard drive, the hard drive was assigned to a pc before adding these files so it wouldn't let me add files from my MacBook..
    Had a look around online and made some changes (well thats what I thought) and I was able to transfer files form my MacBook onto the external hard drive.
    What I then figured out was that there was nothing left on the hard drive except for the two file sI just transferred..
    It turns out I deleted everyting without noticing.
    The stpes I followed was to go to disk utility then select the hard drive and click erase (not knowing this would erase evrything).
    So now I have two files on my hard drive and no idea how to recover the 'delted' files.
    I tried using Disk Drill, which found the files but then it said I need to buy the full version to recover them.
    I am wondering if there is any free methods to recover these files at all, any help is appreciated.

    The files are still on the drive, and will remain unless and until you overwrite them with new data. So don't write anything more to the drive in addition to the two files you added after reformatting it, and do download the free trial version(s) of one or more data recovery utilities:
    Data Rescue 3: http://www.prosofteng.com/products/data_rescue.php
    FileSalvage 7: http://subrosasoft.com/OSXSoftware/index.php?main_page=product_info&products_id= 1
    Each is offered in a free demo version that will show you exactly what the full version could recover before you have to pay for anything. There are others on the market, but these are the ones I'm familiar with.
    To recover data using any such utility, you must have another drive available on which to save the recovered files. Saving them on the same drive they're being recovered from would just overwrite other files that haven't yet been recovered.

  • Validating file/folder path from application server.

    Hi All ,
    I have used the FM '/SAPDMC/LSM_F4_SERVER_FILE' to open F4 help for application server. Now I want to validate the folder or file returned by the FM.
    Can anyone help on this?
    Thanks
    Shilpa

    HI Shilpa,
    Us this  FM
    F4_DXFILENAME_TOPRECURSION
    Hope this will help you.
    Regards,
    Vijay

  • How Do I Copy File Names & Folders From A Hard Drive To A Word Document?

    Hi Gang:
    This may sound silly but I am having a herd time with the following - seemingly simple task.
    I have data DVD-Rs with audio files organized into folders. Each folder contains audio files related to the folder name.
    I would like to copy the file names and folders from a DVD-R and paste them into a MS Word file. I am just looking to get a listing of files as they appear on the DVD-Rs in their folders.
    The problem is that when I copy and paste, the order changes (seemingly randomly) and the file names are no longer under the folder names. In fact, the whole thing looks to be really random.
    Anybody know how to copy file/folder names from a hard drive or DVD-R to a word document and retain the file/folder structure?
    Thanks!
    LAHD

    There is an even easier method with no Terminal magic required. In the Finder, select all the files you want the names of, press Command-C, switch to Word and press Command-V. Poof, your done.
    If you view the DVD in List VIew, you can expand the folders you want the files for, then select all the files (and their folders if you want them too) and then do the Copy/Paste thing.
    Message was edited by: petrock

  • Deleting the C:\System Recovery Files folder

    In 2012 someone already posted this and I have the same problem.  Can't anyone solve this?  How about someone from HP or Microsoft.   Problem deleting the C:\System Recovery Files folder ‎01-08-2012 10:37 AM My computer, a HP-Pavillion desktop, model RK575AA-ABA a1740n running Windows Vista Home Premium, was getting more and more sluggish. One morning, when booting, I pressed F11 and clicked on "Backup and Recovery". The process took a while and resulted in a MINWINPC folder on my backup drive containing my C: drive in compressed form. The rest of the process was to take the computer back to its previous capabilities: formatting, installating the factory image of the system and installating my programs. Once this was completed, I decompressed the MINWINPC and it deposited all of the files from my previous C: drive into a "System Recovery Files" folder on my C: drive. From that folder, I copied and pasted the users data.
    The C:\System Recovery Files folder is still on my C: drive, it has served its purpose and is not needed any longer. I tried to delete it. I took administrator priviledges and right-clicked the folder and selected the "Delete" command. Surprise! Access was denied and I cancelled the command. I tried a lot of tricks gathered by a search on the Web (take ownership from the virtual menu properties and Security panel, use TakeOwnership and Unlocker) to no avail though I had very little problem deleting users data and all the files resulting from the installation of applications. Deleting the AppData folder required more patience but there was no way to delete sub-folders of Program Files containing  Window programs (Internet Explorer, Microsoft Security Client, Windows Calendar, ...). An attempt to use Unlocker even resulted in a BSOD indicating a last ditch effort by Windows to save its integrity.
    What can I do?

    Unless this folder is excessive in size, why be worried?   If you absolutely have to remove the folder, you could do it outside of Windows, since windows will not let it be done.  My choice is to get a Linux Live, make the CD to load it and then reboot to the Linux by booting to the Linux Live CD.  It will not alter the Windows install but will allow the user to remove or write whatever they want to the hard drive.  I have done this many times.  To use a user friendly  Distro look for Linux Mint or Ubuntu.Be cautioned that bad things can happen to any other files if any are accidentally altered or deleted will using this method.  The risk however is yours, depending on how much this Recovery file folder is annoying to you.

  • Encrypted Profile Migration from XP to Windows 7 (Windows & Program Files Folder not Available)

    I'm trying to migrate a few encrypted profiles from Windows XP to Windows 7 
    I have a disk without "Windows" and "Program Files" Folder with the userprofiles without a backup of recovery agent and related certificates. 
    By USMT or in another way it is possible a deployment and recovery (also partial) of these userprofiles folders? These data can be accessible in some way or there are lost forevar? 
    During USMT deployment by scanstate/loadstate cmdline tools: I used to be specify a KeyString
    after the switch command "/encrypt /efs:". I can blank "/efs:" argument during USMT Deployment? 
    Thank you.

    Sadly, without a backup of encrypted userprofiles, related data are unusable after scanstate phase.
    Anyway, what
     Hetti
    Arachchige V Aravinda had written is very important to know when you copy or move ecrypted folder and files in a different partition or in a another disk.
    Thanks Hetti
    Arachchige V Aravinda for your good info and tips. 

  • Problem deleting the C:\System Recovery Files folder

    My computer, a HP-Pavillion desktop, model RK575AA-ABA a1740n running Windows Vista Home Premium, was getting more and more sluggish. One morning, when booting, I pressed F11 and clicked on "Backup and Recovery". The process took a while and resulted in a MINWINPC folder on my backup drive containing my C: drive in compressed form. The rest of the process was to take the computer back to its previous capabilities: formatting, installating the factory image of the system and installating my programs. Once this was completed, I decompressed the MINWINPC and it deposited all of the files from my previous C: drive into a "System Recovery Files" folder on my C: drive. From that folder, I copied and pasted the users data.
    The C:\System Recovery Files folder is still on my C: drive, it has served its purpose and is not needed any longer. I tried to delete it. I took administrator priviledges and right-clicked the folder and selected the "Delete" command. Surprise! Access was denied and I cancelled the command. I tried a lot of tricks gathered by a search on the Web (take ownership from the virtual menu properties and Security panel, use TakeOwnership and Unlocker) to no avail though I had very little problem deleting users data and all the files resulting from the installation of applications. Deleting the AppData folder required more patience but there was no way to delete sub-folders of Program Files containing  Window programs (Internet Explorer, Microsoft Security Client, Windows Calendar, ...). An attempt to use Unlocker even resulted in a BSOD indicating a last ditch effort by Windows to save its integrity.
    What can I do?

    Lisa, that's terrible advice. First of all, why would you delete the recovery partition? It's only accessed when you need to perform a recovery. Secondly, how does doing this solve the OP's question? Answer: It doesn't. 

  • HT2674 I have an iMac purchased in May 2011.  OSX Lion 10.7.3.  I deleted backup file from the external hard drive. Now, the trash can will not empty some of the files deleted.  File folder: "Core Services" contains a locked file: "boot.efi".  It will not

    I have an iMac purchased in May 2011.  OSX Lion 10.7.3.  I deleted backup file from the external hard drive which operates from Time Machine.
    Now, the trash can will not empty some of the files deleted from the backup harddrive.
    The trash contains-- File folder: "Core Services" which contains a locked file: "boot.efi". 
    It will not delete.
    How do I get the trash can empty of these files?

    Yes, the Old Master file has a folder for each year where I find all photos from that specific year. I am attaching a screen shot of the file.
    In the meantime i have managed to download all photos (it did not download any video files though in mpg, avi, 3gp, m4v,mp4 and mov format) to a new iphoto library. Unfortunately the photos are quite mixed and often doubled up. I ma considering to purchase iphoto library which checks all duplicates in iphoto. this will save me a lot of time. What do you think?

  • Is it safe to delete the cache file folder from library

    is it safe to delete the cache file folder from library ?

    As I understand it Robo doesn't really 'do' third-party
    source control. We use SourceGear Vault, but really only as a
    repository for the files. We can't really work concurrently because
    Robo needs exclusive access to the top level project files. But it
    kind of works for us, because we're on opposite sides of the globe.
    I see what you're saying on the 'local' versions of (say) the
    cpd files conflicting. If anyone else has an informed view, I'm all
    ears. We've set it up this way ourselves - I don't know of anyone
    doing the same. If someone tells me this is a bad idea, I'm happy
    to think again.
    Cheers!

  • How do I get my photos from Elements 11 into a file folder.

    How do I get my photos from Elemtnts 11 into a file folder.  I am trying to use Blurb to make a travel book but because of the number of photos I have them in groups and want them to stay in groups for the book.  Unfortunately the photos in each grouping are all over the place and will be definitely difficult and time consuming to bring into Blurb.

    Thank you.  I tried this before I wrote the question as the photos had just disappeared!
      I was very nervous to try this again but did with some junk photos and after much trial and error - it worked!  I'm not a real pro as you can tell and appreciate your help.

  • From Forms 5.0 I want to copy a file/folder from one location to another.

    Hi,
    I have a question and I really appreciate your help.
    My Question is
    I would like to copy a file/folder from one location to another.
    (For ex: From my Hard disk to a Network folder).
    I want to do this from Oracle Forms 5.0 and my operating system is Windows 2000/NT Workstation.
    At present my users are doing this by using drag and drop windows functionality,
    But now they want to do this by using a GUI screen.
    I would greatly appreciate if somebody can answer my question.
    Thank you very much and have a nice day.
    Thanks & Regards
    Sanjeev.

    Hi Shay,
    Am able to copy the files/folders by doing the follwing.
    Declare
    My_Command Varchar2(1000);
    Begin
    MY_COMMAND := 'XCOPY /E ' ||:FROM_LOC ||' '|| :TO_LOC ;
    HOST(MY_COMMAND);
    End;
    But my problem is am not able to trap the errors.
    Do you have any idea?
    Thanks

  • I have hard drive from trashed MBP15"..want to put iTunes music on my MBP17". The content is almost identical, but 17" has been showing a lot of "cannot be found" messages. Previous suggestions have always failed to identify which file/folder/library item

    Greetings..my 15"MBP crashed. I pulled hard drive and have it available as "external drive"..with all info intact. I am currently using my 17"MBP, which has really been acting up in iTunes..many of my songs are showing the dreaded "exclaimation mark"..still don't understand how this occurs. BOTH computers are almost carbon copies of each other, so I just want to copy tunes from 15" hard drive to my 17" working computer, to try and rescue all these "lost" tunes. I've asked this before and always get several answers (for which I am grateful!)..but..they are always different.."You gotta get this library folder!..just drag and drop..erase and reinstall!.."...nothing has worked yet..I'm trying one more time. Mainly need to know which file/folder to drag to what location. Should be simple,.maybe you can help. There will be TON'S of duplicates (unless program catches this and asks if I want to import dupes!!)..so I am prepared to run "dupe-elimination" program. Thanks for your time and suggestions!

    iTunes: How to move [or copy] your music to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    Quick answer if you use iTunes' default preferences settings:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Open iTunes and immediately hold down the Option (alt) key (shift on Windows), then guide it to the new location of the library.

  • Download doesn't work; i keep getting "unable to find firefox.exe" even when I open from program files folder; working onwindows xp with service pack 3

    download doesn't work; i keep getting "unable to find firefox.exe" even when I open from program files folder; working onwindows xp with service pack 3

    As you can see below, when I right click, I have no such option.  In the User Account Settings, I'm operating as the "System Administrator".
    Any other suggestions?

Maybe you are looking for