Stop-VESQLPluginDatabaseRestore
Short Description
Stops a restore job for a database backed up with Veeam Plug-in for Microsoft SQL Server.
Product: Veeam Backup & Replication
Product Edition: Enterprise Plus, Veeam Universal License
Syntax
|
Stop-VESQLPluginDatabaseRestore -RestoreJob <VESQLPluginRestore> [-Force] [<CommonParameters>] |
Detailed Description
This cmdlet stops a restore job for a database backed up by Veeam Plug-in for Microsoft SQL Server.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Force |
Defines that the cmdlet will show no prompt before executing the command. |
|
False |
Named |
False |
|
RestoreJob |
Specifies a restore job for a Microsoft SQL Server database.
Accepts the |
True |
Named |
True (ByValue) |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Examples
Stopping Restore Job
This example shows how to stop the restore job.
|
$restore = Get-VESQLPluginDatabaseRestore Stop-VESQLPluginDatabaseRestore -RestoreJob $restore[3] -Force |
Perform the following steps:
- Run the
Get-VESQLPluginDatabaseRestoreReturns active restore jobs for databases backed up with Veeam Plug-in for Microsoft SQL Server. cmdlet. Save the result to the$restorevariable.The cmdlet will return an array of active restore jobs. Note the ordinal number of the necessary restore job (in this example, it is the fourth restore job in the array).
- Run the
Stop-VESQLPluginDatabaseRestorecmdlet. Set the$restorevariable as theRestoreJobparameter value and select the necessary restore job. Note that theForceparameter is also provided, which will cause the restore job to be stopped without any additional prompts or warnings.
Related Commands
Get-VESQLPluginDatabaseRestoreReturns active restore jobs for databases backed up with Veeam Plug-in for Microsoft SQL Server.