Forum Discussion

rzeygerman's avatar
10 years ago

BEMCLI / Powershell /Backup Exec 2014 / Submit-BEFileSystemRestoreJob

My fileserve backup selections are done using \\SERVER\ShareName

Is there a way restore using BEMCPLI LI with Pointing to the share as a Path?

 

As of Now, only wat i found to do a restore is this way (But it means I must change all my jobs)

$File=(Get-Childitem -path "\\Server\D$\Folder\Folder" `
    | Get-Random -Count 1).FullName.ToUpper().Replace("\\SERVER\D$","D:")
Get-BEJob -Name *00058* `
    | Get-BEJobHistory -FromLastJobRun `
    | Submit-BEFileSystemRestoreJob $file `
    -RedirectToPath D:\RestoreTestJobsFolder

 

Looking for a way to  restore using a "share path instead" if possible (This does not work)

$File=(Get-Childitem -path "\\Server\Share\Folder\Folder" `
    | Get-Random -Count 1).FullName
Get-BEJob -Name *00058* `
    | Get-BEJobHistory -FromLastJobRun `
    | Submit-BEFileSystemRestoreJob $file `
    -RedirectToPath D:\RestoreTestJobsFolder

 

Thank you for your help!

 

No RepliesBe the first to reply