Start-OBBackup
Start-OBBackup
Starts a one-time backup operation based on the specified OBPolicy.
语法
Parameter Set: PolicyName
Start-OBBackup [-Name] <String> [[-Async]] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: PolicyObject
Start-OBBackup [-Policy] <CBPolicy> [[-Async]] [-Confirm] [-WhatIf] [ <CommonParameters>]
详细说明
The Start-OBBackup cmdlet starts a one-time backup operation. Set the Policy parameter to specify the settings for the backup.
This cmdlet supports WhatIf and Confirm parameters with a medium impact. The medium impact signifies that the cmdlet will not prompt the user for confirmation by default. The WhatIf parameter gives a verbose description of what the cmdlet does without performing any operation. The Confirm parameter specifies whether the cmdlet should prompt the user. Using –Confirm:$FALSE will override the prompt.
参数
-Async
Allows the user to indicate that the cmdlet should run asynchronously. This is useful with cmdlets that take a long time to complete. The control returns to the user immediately after the operation.
别名 |
none |
是否必需? |
false |
在哪里? |
3 |
默认值 |
none |
是否接受管道输入? |
false |
是否接受通配符? |
false |
-Name<String>
Specifies the policy to be started by name.
别名 |
none |
是否必需? |
true |
在哪里? |
2 |
默认值 |
none |
是否接受管道输入? |
false |
是否接受通配符? |
false |
-Policy<CBPolicy>
Specifies the policy to be backed up.
别名 |
none |
是否必需? |
true |
在哪里? |
2 |
默认值 |
none |
是否接受管道输入? |
True (ByValue) |
是否接受通配符? |
false |
-Confirm
在运行 cmdlet 前提示你进行确认。
是否必需? |
false |
在哪里? |
named |
默认值 |
false |
是否接受管道输入? |
false |
是否接受通配符? |
false |
-WhatIf
显示在 cmdlet 运行时将发生的情况。该 cmdlet 不运行。
是否必需? |
false |
在哪里? |
named |
默认值 |
false |
是否接受管道输入? |
false |
是否接受通配符? |
false |
<CommonParameters>
此 cmdlet 支持常见的参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 TechNet 上的 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
输入
输入类型是可以传送到 cmdlet 的对象的类型。
- None
输出
输出类型是 cmdlet 发出的对象的类型。
Microsoft.Internal.CloudBackup.Client.Cmdlets.OBJob
This cmdlet displays the status of the currently running backup if the Async parameter is not specified. The Get-OBJob cmdlet can also be used to get the status of the currently running backup operation.
示例
EXAMPLE 1
This example starts a backup job using a policy.
PS C:\> Get-OBPolicy | Start-OBBackup
EXAMPLE 2
This example starts a backup job by policy name.
PS C:\> Start-OBBackup -Name myPolicy -Async