Export (0) Print
Expand All

Get-DfsrBacklog

Windows Server 2012 R2 and Windows 8.1

Updated: October 17, 2013

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

Get-DfsrBacklog

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

Syntax

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




Detailed Description

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.

Parameters

-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.


Aliases

ReceivingMember,RMem

Required?

false

Position?

4

Default Value

[local computer]

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-DomainName<String>

Specifies a NetBIOS or fully qualified domain name (FQDN) for an Active Directory domain that contains the replication group. If you do not specify this parameter, the cmdlet uses the current domain of the user.


Aliases

none

Required?

false

Position?

101

Default Value

[Current Domain]

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

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 (*).


Aliases

RF,RfName

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

true

-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 (*).


Aliases

RG,RgName

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue, ByPropertyName)

Accept Wildcard Characters?

true

-SourceComputerName<String>

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


Aliases

SendingMember,SMem

Required?

true

Position?

3

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

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

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.DistributedFileSystemReplication.DfsrIdRecord

Examples

Example 1: Retrieve unreplicated changes

This command retrieves the first 100 unreplicated changes between the local computer and the upstream computer SRV02 for the replication group RG01 and the replicated folder RF1A. The command displays all file metadata.


PS C:\> Get-DfsrBacklog -SourceComputerName SRV02 -GroupName "RG01" -FolderName "RF1A"
Identifier                  : {DCE7FC28-5584-4D5D-BC84-2BD9D53CC2FC}-v538
Flags : 5
Attributes : 32
GlobalVersionSequenceNumber : {DCE7FC28-5584-4D5D-BC84-2BD9D53CC2FC}-v538
UpdateSequenceNumber : 71576496
ParentId : {997D8F76-1207-49D7-85C9-DED015105A2F}-v1
FileId : 562949953495210
Volume : \\.\C:
Fence : 3
Clock : 130078672846368199
CreateTime : 3/15/2013 5:28:04 PM
UpdateTime : 3/15/2013 5:28:04 PM
FileHash : 173b51c11257a2eb 8c05884560fcfd1d
FileName : diskraid.exe
FullPathName : c:\rf1a\diskraid.exe
Index : 1
ReplicatedFolderId : 997d8f76-1207-49d7-85c9-ded015105a2f

Identifier : {DCE7FC28-5584-4D5D-BC84-2BD9D53CC2FC}-v539
Flags : 5
Attributes : 32
GlobalVersionSequenceNumber : {DCE7FC28-5584-4D5D-BC84-2BD9D53CC2FC}-v539
UpdateSequenceNumber : 71577024
ParentId : {997D8F76-1207-49D7-85C9-DED015105A2F}-v1
FileId : 562949953495211
Volume : \\.\C:
Fence : 3
Clock : 130078672846524997
CreateTime : 3/15/2013 5:28:04 PM
UpdateTime : 3/15/2013 5:28:04 PM
FileHash : 6bcd377edf35e621 a7927703c08545d8
FileName : diskshadow.exe
FullPathName : c:\rf1a\diskshadow.exe
Index : 2
ReplicatedFolderId : 997d8f76-1207-49d7-85c9-ded015105a2f

Example 2: Retrieve unreplicated changes between upstream and downstream computers

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
FullPathName                      UpdateTime
------------ ----------
c:\rf1a\imageres.dll 3/15/2013 5:28:45 PM
c:\rf1a\mshtml.dll 3/15/2013 5:28:50 PM

Example 3: Retrieve unreplicated changes count to display

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
The replicated folder has a backlog of files. Replicated folder: "RF01". Count: 2400

Example 4: Retrieve unreplicated changes count to a string object

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]
2400

Example 5: Retrieve unreplicated changes count to a file

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 > null
PS C:\> Get-Content .\verbose.txt

The replicated folder has a backlog of files. Replicated folder: "RF01". Count: 2400

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft