NAME
Revert-DcsRollback
SYNOPSIS
Reverts the CDP-enabled virtual disk to the state of the rollback. This operation can also be performed on a rollback group.
SYNTAX
Revert-DcsRollback -Rollback <Object> [ -Yes] [ -Connection <String> ] [ -PipelineVariable <String> ] [ -WhatIf] [ -Confirm]
Revert-DcsRollback -RollbackGroup <Object> [ -Yes] [ -Connection <String> ] [ -PipelineVariable <String> ] [ -WhatIf] [ -Confirm]
DESCRIPTION
Reverts the CDP-enabled virtual disk to the state of the rollback. This operation can also be performed on a rollback group. Reverting will overwrite all changes that have occurred on the CDP-enabled virtual disk after the restore point (point-in-time) of the rollback. Before invoking this cmdlet, I/O from the client host should be stopped and the CDP-enabled (source) virtual disk should be unserved from the client host, see Unserve-DcsVirtualDisk.
PARAMETERS
- -Rollback<Object>
- RollbackData object, name, or ID that identifies the rollback.
-
- Required: true
- Position: named
- Default value:
- Accept pipeline input: true (ByValue)
- Accept wildcard characters: false
-
- -Yes<SwitchParameter>
- Reverting is an operation that requires confirmation. Specify this parameter to confirm your intention to revert and prevent user interaction during scripted scenarios. If this parameter is not specified, user interaction will be required.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Connection<String>
- Alias of the connection to the server group. If not specified, the default connection is used.
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -PipelineVariable<String>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -WhatIf<SwitchParameter>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -Confirm<SwitchParameter>
-
- Required: false
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
- -RollbackGroup<Object>
- RollbackGroupData object, name or ID that identifies a rollback group to revert. This will revert all rollbacks in the rollback group.
-
- Required: true
- Position: named
- Default value:
- Accept pipeline input: false
- Accept wildcard characters: false
-
INPUTS
RollbackData : Object the identifies and describes the rollback.
OUTPUTS
RollbackData : Object the identifies and describes the rollback.
NOTES
Also see Remove-DcsRollback, Get-DcsRollback, Disable-DcsDataProtection, Split-DcsRollback.
EXAMPLES
Revert-DcsRollback -Rollback "Virtual disk 1 @ 8/26/2011 3:01:18 PM on SSV1" -Yes
Reverts the rollback named "Virtual disk 1 @ 8/26/2011 3:01:18 PM on SSV1" in the server group. The Yes parameter was included to eliminate the need to confirm the operation.
SourceLogicalDiskId | : | LD:84972D6B-7E71-4616-BDA1-57ECEAF3FFC4_V.{91e63003-ca79-11e0-a962-00155d11e921}-00000001 |
DestinationLogicalDiskId | : | LD:84972D6B-7E71-4616-BDA1-57ECEAF3FFC4_V.{91e63003-ca79-11e0-a962-00155d11e921}-00000005 |
RestorePoint | : | 8/26/2011 7:01:18 PM |
AutoExpire | : | False |
State | : | Reverting |
Id | : | V.{91E63003-CA79-11E0-A962-00155D11E921}-00000001--V.{91E63003-CA79-11E0-A962-00155D11E921}-00000008 |
Caption | : | Virtual disk 1 @ 8/26/2011 3:01:18 PM |
ExtendedCaption | : | Virtual disk 1 @ 8/26/2011 3:01:18 PM on SSV1 |
Internal | : | False |
Get-DcsRollback | Revert-DcsRollback -Yes
The cmdlet Get-DcsRollback is invoked to obtain all RollbackData objects for the server group. The objects are piped to Revert-DcsRollback resulting in the reverting of all rollbacks in the server group. The Yes parameter is included to eliminate the need to confirm the operation.
SourceLogicalDiskId | : | LD:84972D6B-7E71-4616-BDA1-57ECEAF3FFC4_V.{91e63003-ca79-11e0-a962-00155d11e921}-00000002 |
DestinationLogicalDiskId | : | LD:84972D6B-7E71-4616-BDA1-57ECEAF3FFC4_V.{91e63003-ca79-11e0-a962-00155d11e921}-00000006 |
RestorePoint | : | 8/29/2011 11:00:00 AM |
AutoExpire | : | False |
State | : | Reverting |
Id | : | V.{91E63003-CA79-11E0-A962-00155D11E921}-00000002--V.{91E63003-CA79-11E0-A962-00155D11E921}-00000010 |
Caption | : | Virtual disk 2 @ 8/29/2011 7:00:00 AM |
ExtendedCaption | : | Virtual disk 2 @ 8/29/2011 7:00:00 AM on SSV1 |
Internal | : | False |
SourceLogicalDiskId | : | LD:84972D6B-7E71-4616-BDA1-57ECEAF3FFC4_V.{91e63003-ca79-11e0-a962-00155d11e921}-00000003 |
DestinationLogicalDiskId | : | LD:84972D6B-7E71-4616-BDA1-57ECEAF3FFC4_V.{91e63003-ca79-11e0-a962-00155d11e921}-00000007 |
RestorePoint | : | 8/29/2011 11:00:00 AM |
AutoExpire | : | False |
State | : | Reverting |
Id | : | V.{91E63003-CA79-11E0-A962-00155D11E921}-00000003--V.{91E63003-CA79-11E0-A962-00155D11E921}-00000013 |
Caption | : | Virtual disk 3 @ 8/29/2011 7:00:00 AM |
ExtendedCaption | : | Virtual disk 3 @ 8/29/2011 7:00:00 AM on SSV1 |
Internal | : | False |