Forum Discussion

Thomas Lauer's avatar
Thomas Lauer
Copper Contributor
Jul 31, 2017

Azure Backup / Restore with Powershell

Hi, i want to restore a file with powershell.

 

My code is:

$source = Get-OBRecoverableSource
$rps = Get-OBRecoverableItem -Source $source[0]
$filesFolders = Get-OBRecoverableItem $rps[0]

$item = New-OBRecoverableItem $rps[0] "DATEV\DATEN\DATEVDMS\DATA\STANDARD\LW01\DATA" $false

$recovery_option = New-OBRecoveryOption -DestinationPath C:\RESTORECHECK -OverwriteType Skip -SkipRestoreSecurity 

Start-OBRecovery -RecoverableItem $item -RecoveryOption $recover_option 

my destination folder is c:\restorecheck

the task runs without error 

Spoiler
Estimating size of backup items...
Estimating size of backup items...
Estimating size of backup items...
Estimating size of backup items...
Estimating size of backup items...
Estimating size of backup items...
Estimating size of backup items...
Estimating size of backup items...
Estimating size of backup items...
Estimating size of backup items...
Estimating size of backup items...
Estimating size of backup items...
Estimating size of backup items...
Estimating size of backup items...
Estimating size of backup items...
Estimating size of backup items...
Estimating size of backup items...
Transferring data...
Transferring data...
Transferring data...
Transferring data...
Transferring data...
Transferring data...
Transferring data...
Transferring data...
Job completed.
The recovery operation completed successfully.

but i have no file in the destination folder ;-(

1 Reply

  • Thomas Lauer's avatar
    Thomas Lauer
    Copper Contributor
    the script restore only in the orginal folder (filename + timestamp)

Resources