Stop-VBRLinuxGuestItemRestore
Short Description
Stops Linux guest OS file restore session initiated with the Start-VBRLinuxGuestItemRestoreRestores Linux-based or Unix-based guest OS files. cmdlet.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Stop-VBRLinuxGuestItemRestore -ItemSession <VBRItemSession> [<CommonParameters>] |
Detailed Description
This cmdlet stops Linux-based or Unix-based guest OS file restore session initiated with the Start-VBRLinuxGuestItemRestoreRestores Linux-based or Unix-based guest OS files. cmdlet.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
ItemSession |
Specifies the running Linux guest OS file restore session that you want to stop.
Accepts the |
|
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Examples
Stopping Restore Session
This example shows how to stop a restore session. During the session Unix-based guest OS files of the UbuntuSrv VM are restored to the original host with the following settings:
- The cmdlet will overwrite existing files and folders.
- The cmdlet will use the
LinSrv05machine as a helper appliance.
|
$backup = Get-VBRBackup -Name "UbuntuSrv" $restorepoint = Get-VBRRestorePoint -Backup $backup $server = Get-VBRServer -Name "LinSrv05" $session = Start-VBRLinuxFileRestore -RestorePoint $restorepoint -MountServer $server $root = Get-VBRLinuxGuestItem -LinuxFlrObject $session $child = Get-VBRLinuxGuestItem -LinuxFlrObject $session -ParentItem $root $restoresession = Start-VBRLinuxGuestItemRestore -LinuxFlrObject $session -Item $child[3] -RunAsync Stop-VBRLinuxGuestItemRestore -ItemSession $restoresession |
Perform the following steps:
- Mount the disk and get the OS files:
- Run the
Get-VBRBackupReturns backups. cmdlet. Specify theNameparameter value. Save the result to the$backupvariable. - Run the
Get-VBRRestorePointReturns restore points. cmdlet. Set the$backupvariable as theBackupparameter value. Save the result to the$restorepointvariable. - Run the
Get-VBRServerReturns hosts connected to the backup infrastructure. cmdlet. Specify theNameparameter value. Save the result to the$servervariable. - Run the
Start-VBRLinuxFileRestoreStarts a restore session of Linux-based or Unix-based guest OS files. cmdlet. Set the$restorepointvariable as theRestorePointparameter value. Set the$servervariable asMountServerparameter value. Save the result to the$sessionvariable. - Run the
Get-VBRLinuxGuestItemReturns Linux-based or Unix-based guest OS files. cmdlet. Set the$sessionvariable theLinuxFlrObjectparameter value. Save the result to the$rootvariable. - Run the
Get-VBRLinuxGuestItemReturns Linux-based or Unix-based guest OS files. cmdlet. Set the$sessionvariable as theLinuxFlrObjectparameter value. Set the$rootvariable asParentItemparameter value. Save the result to the$childvariable.The
Get-VBRLinuxGuestItemcmdlet will return an array of files and folders. Mind the ordinal number of the necessary item (in our example, it is the fourth item in the array).
- Run the
- Run the
Start-VBRLinuxGuestItemRestoreRestores Linux-based or Unix-based guest OS files. cmdlet. Specify theLinuxFlrObjectandItemparameter values. Specify theRunAsyncparameter. Save the result to the$restoresessionvariable. - Run the
Stop-VBRLinuxGuestItemRestore. Set the$restoresessionvariable as theItemSessionparameter value.