question

EricNicolay-1910 avatar image
0 Votes"
EricNicolay-1910 asked BobJohnson-6874 edited

scdpm scripting a list of possible restore file

hi,
i try to write a powershell script that can list the different possibilite for the restoration of a file ... extention ...

 #variable for the DPMSearchOption...
 $locationpath = "E:\xx\xxx\yyy\"#path find file
 $fichierrecherche = ".tif" #ext to find
 $recoverydateto = ((Get-Date).AddDays(-40)).toshortdatestring() #date
 $recoverydatefrom = ((Get-Date).AddDays(-300)).toshortdatestring() # date
    
 #main code
 $pg = Get-ProtectionGroup -DPMServerName dpm1 | Where-Object {$_.name -eq "Dpm1-Fileserverxx"} 
    
 $ds = Get-Datasource $pg | Where-Object {($_.computer -eq "FS01") -and ($_.name -eq "E:\")} #DataSource for F01 hdd E
    
 #SearchOption
 $SO=New-DPMSearchOption -FromRecoveryPoint $recoverydatefrom -ToRecoveryPoint $recoverydateto -SearchDetail FilesFolders -SearchType endsWith -SearchString $fichierrecherche -Location $locationpath -Recursive -ErrorAction SilentlyContinue
    
 #make the search in dpm
 $ri = Get-DpmRecoverableItem -Datasource $ds -SearchOption $SO -ErrorAction SilentlyContinue

I have more than 250 object in $RI...
this code work perfect if the $RI are smaller than 250 object
Is there any solution to have more than 250 object ... sometime ... the users giving no much information to restore ....






not-supported-azuremsc-essentials
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers