Stop-VBOCopyJob
Short Description
Stops running backup copy jobs.
Syntax
|
Stop-VBOCopyJob -Job <VBOCopyJob> [-Force] [-RunAsync] [-WhatIf] [-Confirm] [<CommonParameters>] |
Detailed Description
This cmdlet stops a running backup copy job.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Force |
Defines that the cmdlet will stop the specified backup copy job without waiting for the entire subprocesses to complete, for example, if the backup copy job gets stuck. The cmdlet will prompt you to confirm the operation. Default: False |
|
False |
Named |
False |
|
Job |
Specifies a backup copy job that you want to stop.
Accepts the
To get this object, run the |
True |
Named |
True (ByValue) |
|
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. Default: False |
|
False |
Named |
False |
|
Confirm |
Defines that the cmdlet will display a prompt that asks if the user is sure that he wants to continue. Default: True |
|
False |
Named |
False |
|
WhatIf |
Defines that the cmdlet will write a message that describes the effects of running the cmdlet without actually performing any action. Default: False |
|
False |
Named |
False |
<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 Backup Copy Job
This example shows how to stop the backup copy job.
|
$job = Get-VBOJob -Name "ABC Backup" $copyjob = Get-VBOCopyJob -BackupJob $job Stop-VBOCopyJob -Job $copyjob |
Perform the following steps:
- Run the
Get-VBOJobReturns backup jobs. cmdlet. Specify theNameparameter value. Save the result to the$jobvariable. - Run the
Get-VBOCopyJobReturns backup copy jobs. cmdlet. Set the$jobvariable as theBackupJobparameter value. Save the result to the$copyjobvariable. - Run the
Stop-VBOCopyJobcmdlet. Set the$copyjobvariable as theJobparameter value.
Related Commands
Get-VBOJobReturns backup jobs.Get-VBOCopyJobReturns backup copy jobs.