Start-BridgeStateTransfer
This PowerShell cmdlet enables the user to initiate a state transfer between the source and target caches connected through an existing NCache Bridge. It triggers on-demand data synchronization from a specified source cache to a target cache within a WAN replication topology, ensuring data consistency across distributed sites. The Start-BridgeStateTransfer cmdlet requires the bridge name, bridge server, and fully qualified source and target cache names. It is commonly used for initial cache population, resynchronization after network outages or node downtime, onboarding new caches or nodes, and enforcing data consistency in disaster recovery or multi-region deployments. The cmdlet also supports secure clusters through credential-based authentication.
Start-BridgeStateTransfer -Name -Server -SourceCache -TargetCache [-Port] [-Credentials] [-NoLogo]
Examples
- This command initiates state transfer from source cache demoCache.WestCoast to target cache demoCache.EastCoast for demoBridge running on 20.200.20.11.
Start-BridgeStateTransfer -Name demoBridge -Server 20.200.20.11 -SourceCache demoCache.WestCoast -TargetCache demoCache.EastCoast
- This command initiates state transfer from source cache demoCache.WestCoast to target cache demoCache.EastCoast for demoBridge running on 20.200.20.11 using security credentials.
Start-BridgeStateTransfer -Name demoBridge -Server 20.200.20.11 -SourceCache demoCache.WestCoast -TargetCache demoCache.EastCoast -Credentials (Get-Credential john_smith)
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
| Parameters | Data Types | Description | Default Value |
|---|---|---|---|
-Name* |
<String> |
Specifies the name of the Bridge registered on the server. | - |
-Server* |
<String> |
Specifies the server name where the NCache Bridge Service is running and a Bridge with the specified Bridge-name is registered. | - |
-SourceCache* |
<String> |
Specifies the full source cache name with environment name from which state transfer is to be initiated. | - |
-TargetCache* |
<String> |
Specifies the full target cache name with environment name for state transfer. | - |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |
-Port |
<Integer> |
Specifies the port on which the NCache Bridge Service is listening. | 8260 |
-Credentials |
<pscredential> |
Specifies the user credentials required to authorize access for the specified operation. These credentials should belong to a user with the appropriate permissions at the node. | - |