Sync-DfsReplicationGroup
Sync-DfsReplicationGroup
Synchronizes replication between computers regardless of schedule.
Sintaxis
Parameter Set: Default
Sync-DfsReplicationGroup [-GroupName] <String[]> [-SourceComputerName] <String> [-DestinationComputerName] <String> [-DurationInMinutes] <UInt32> [-Confirm] [-WhatIf] [ <CommonParameters>]
Descripción detallada
The Sync-DfsReplicationGroup cmdlet synchronizes replication between a source computer and a destination computer, even if replication is not scheduled by either a replication group or a connection.
This cmdlet ignores the schedule for the specified number of minutes. Use this cmdlet to alter the schedule temporarily to allow replication, because this cmdlet does not require Active Directory replication and LDAP polling.
Parámetros
-DestinationComputerName<String>
Specifies the name of the receiving computer. A destination computer is also called an inbound or downstream computer. This computer overrides its schedule and replicates inbound.
Alias |
ReceivingMember,RMem |
¿Requerido? |
true |
¿Posición? |
3 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-DurationInMinutes<UInt32>
Specifies the number of minutes to allow replication.
Alias |
Time |
¿Requerido? |
true |
¿Posición? |
4 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-GroupName<String[]>
Specifies an array of names of replication groups. If you do not specify this parameter, the cmdlet queries for all participating replication groups. You can specify multiple groups, separated by commas.
Alias |
RG,RgName |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue, ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-SourceComputerName<String>
Specifies the name of the sending computer. A source computer is also called an outbound or upstream computer.
Alias |
SendingMember,SMem |
¿Requerido? |
true |
¿Posición? |
2 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-Confirm
Solicita confirmación antes de ejecutar el cmdlet.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-WhatIf
Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
- Microsoft.DistributedFileSystemReplication.DfsReplicationGroup, uint, string Computername, string Computername
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
- Microsoft.DistributedFileSystemReplication.DfsReplicationGroup
Ejemplos
Example 1: Replicate between servers for 15 minutes
This command allows replication from server SRV01 to SRV02 in the RG01 replication group for 15 minutes, even if the replication happens during a closed replication schedule.
PS C:\> Sync-DfsReplicationGroup -GroupName "RG01" -SourceComputerName "SRV01" -DestinationComputerName "SRV02" -DurationInMinutes 15
Example 2: Replicate between servers with verbose output
This command allows replication from server SRV01 to SRV02 in the RG01 replication group for 5 minutes.
PS C:\> Sync-DfsReplicationGroup -GroupName "RG01" -SourceComputerName "SRV01" -DestinationComputerName "SRV02" -DurationInMinutes 5 -verbose