Forum Discussion
Thomas Lauer
Jul 31, 2017Copper Contributor
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.
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 LauerCopper Contributorthe script restore only in the orginal folder (filename + timestamp)