Get-DfsrBacklog

Get-DfsrBacklog

Retrieves the list of pending file updates between two DFS Replication partners.

구문

Parameter Set: Default
Get-DfsrBacklog [[-GroupName] <String[]> ] [[-FolderName] <String[]> ] [-SourceComputerName] <String> [-DestinationComputerName] <String> [ <CommonParameters>]

자세한 설명

The Get-DfrsBacklog cmdlet retrieves pending updates between two computers that participate in DFS Replication.

Updates can be new, modified, or deleted files and folders. The maximum number of files that this command displays is 100. The Verbose parameter displays a count of all backlogged updates. Any files or folders listed in the DFS Replication backlog have not yet replicated from the source computer to the destination computer. This is not necessarily an indication of problems. A backlog indicates latency, and a backlog may be expected in your environment, depending on configuration, rate of change, network, and other factors.

매개 변수

-DestinationComputerName<String>

Specifies the name of the receiving computer. A destination computer is also called an inbound or downstream computer. If you do not specify this parameter, the cmdlet uses the local computer.

별칭

ReceivingMember,RMem

필수 여부

true

위치

4

기본값

[local computer]

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-FolderName<String[]>

Specifies an array of names of replicated folders. If you do not specify this parameter, the cmdlet queries for all participating replicated folders. You can specify multiple folders, separated by commas, as well as wildcard characters (*).

별칭

RF,RfName

필수 여부

false

위치

2

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

-GroupName<String[]>

Specifies an array of names of replication groups. If you do not specify this parameter, the cmdlet queries for all participating replications groups. You can specify multiple groups, separated by commas, as well as wildcard characters (*).

별칭

RG,RgName

필수 여부

false

위치

1

기본값

없음

파이프라인 입력 적용 여부

True (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-SourceComputerName<String>

Specifies the name of the sending computer. A source computer is also called an outbound or upstream computer.

별칭

SendingMember,SMem

필수 여부

true

위치

3

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • Microsoft.DistributedFileSystemReplication.DfsReplicationGroup, Microsoft.DistributedFileSystemReplication.DfsReplicatedFolder, string computerName

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • Microsoft.DistributedFileSystemReplication.DfsrIdRecord

예제

Example 12: Retrieve unreplicated changes between upstream and downstream computers1

This command retrieves the first 100 unreplicated changes between the downstream computer SRV1 and the upstream computer SRV02 for the replication group RG01 and the replicated folder RF1. The command also formats the output into a table that contains only the file paths and modification dates on the upstream server.

PS C:\> Get-DfsrBacklog -DestinationComputerName SRV1 -SourceComputerName SRV02 -GroupName RG01 -FolderName RF1 | format-table fullpathname,updatetime

Example 23: Retrieve unreplicated changes count to display2

This command retrieves the total count of unreplicated changes between the downstream computer SRV02 and the upstream computer SRV01 for the replication group RG01 and the replicated folder RF01. The command displays this output in the verbose stream.

PS C:\> Get-DfsrBacklog -GroupName "RG01" -FolderName "RF01" -SourceComputerName "SRV01" -DestinationComputerName "SRV02" –Verbose

Example 34: Retrieve unreplicated changes count to a string object3

This command retrieves the total count of unreplicated changes between the downstream computer SRV02 and the upstream computer SRV01 for the replication group RG01 and the replicated folder RF01. The command converts the verbose stream data into a text string containing only the count, for later manipulation.

PS C:\> (Get-DfsrBacklog -GroupName "RG01" -FolderName "RF01" -SourceComputerName "SRV01" -DestinationComputerName "SRV02" -Verbose 4>&1).Message.Split(':')[2]

Example 45: Retrieve unreplicated changes count to a file4

This command retrieves the total count of unreplicated changes between the downstream computer SRV02 and the upstream computer SRV01 for the replication group RG01 and the replicated folder RF01. The command converts the verbose stream data into a text string containing only the count, for later manipulation.

PS C:\> Get-DfsrBacklog -GroupName "RG01" -FolderName "RF01" -SourceComputerName "SRV01" -DestinationComputerName "SRV02" -Verbose 4> verbose.txt > nullPS C:\> Get-Content .\verbose.txt