Article ID: 229928 - Last Review: February 27, 2007 - Revision: 2.2 Design Decisions, Defaults and Behavior for FRS File and Folder Filters in DFS and SYSVOL Replica SetsThis article was previously published under Q229928 On This PageSUMMARY
The File Replication service (FRS) is a multi-threaded, multi-master replication engine that replaces the LMREPL service in Microsoft Windows NT versions 3.x and 4.0. Windows 2000 domain controllers and servers use FRS to replicate system policy and login scripts for Windows 2000 and down-level clients. Optionally, FRS can replicate content between Windows 2000 servers hosting the same fault-tolerant Distributed File System (DFS) roots or child-node replicas. This article describes how filters are applied to files and folders in FRS replicated SYSVOL and DFS replica trees. The following topics are discussed in some detail:
MORE INFORMATIONDesign Decisions for File and Folder filters. During the design the following questions were considered to determine what how FRS should handle file and folder extensions:
How filters are applied NTFRS monitors the USN journal of NTFS 5.0 formatted partitions for closed files on directories where replication has been configured. Next, file and folder filters defined in Active Directory, the registry or in lieu of those, internal defaults in the binary itself, are applied before a file is considered for replication. The compiled in default is only used if no value is supplied in either the DS or the Registry. Default File and Folder Filters Out of the box, no filters defined in Active Directory or the Registry so FRS uses built-in defaults, excluding files with the following signatures:
~* . *.TMP *.BAK Excluding *.tmp, *.bak and ~* files prevents replication when Microsoft Office data files are located on FRS replicated directories. Folder filters are not defined in the registry, active directory or NTFRS.EXE binary so all directory names are replicated. Modifying file and folder filters in the Registry To set FRS filters in the Windows registry, add or modify the following values under HKLM\SYSTEM\CCS\NTFRS\PARAMETERS:
"Directory Exclusion Filter List" (REG_SZ) "File Exclusion Filter List" (REG_SZ) Multiple file or folder filter extensions can be defined in they registry using the comma as a delimiter (*.doc,*.tmp,*.dmp,*.bak). Notes on setting file and folder filters in the registry:
Modifying file and folder filters in Active Directory File and Folder filters in Active Directory are maintained for each FRS replica set in a given domain. Filters in Active Directory can be viewed or modified with the "Users and Computers" snap-in, or a suitable LDAP editor such as ADSIEDIT.MSC or LDP.EXE. To view and edit the filters in the "Users and Computers" snap-in, enable the "Advanced Features" option from the View menu. Two attributes, the FrsFileFilter and FrsFolderFilter attribute on the NTFRSReplica object in the domain naming context define file and directory names that are excluded for replication by the File Replication service. The DN path and object class for the FrsFileFilter and FrsFolderFilter attributes on a domain controller in the A.COM domain hosting SYSVOL and an FRS replicated fault-tolerant DFS \\A.COM\DFSFT would be: Path Object Class DC=A,DC=COM Domain CN=SYSTEM Container CN=File Replication Service NTFRSSettings CN=Domain System Volume NTFRSReplicaSet CN=DFSFT NTFRSReplicaSet In the "Users and Computers" snap-in, folder and file filters can be viewed and modified in the "Directory Filter and "File Filter" fields of the "Replica Set" tab for each FRS replica set under the DN path "CN=File Replication Service,CN=System,DC=<Domain Name> Multiple file or folder filter extensions can be defined in Active Directory using the comma as a delimiter (*.doc,*.tmp,*.dmp,*.bak). Alternatively, to replicate all files and directories, set an explicit file and folder filter of "," (the comma character) on the NTFRSReplicaSet object. FRS will pick up the change once Active Directory (AD) replicates in the change and the FRS service polls subsequently polls the AD. FRS polling is described in MS KB article:
Q221111: Description of FRS Entries in the Registry
.The table below shows how the final filter is formed when settings are defined in Active Directory and \ or the registry. Collapse this table
For more detailed information on FRS File and Folder filters, see MSKB article:
Q296944: How to Use FRS File and Directory Filters
Other files excluded by FRS In addition to files and directories excluded by filters, replication does not occur for the following cases:
Example File and Folder Filter BehaviorWhen applying filters on NTFRS-Replica-Set objects to prevent files on the the Windows 2000 system volume or replicated Distributed File System (DFS) volumes from being replicated. The following rules apply:
Assume that filters for the SYSVOL replica set are set to exclude files with .tmp and .bak extensions for the following scenarios:
Action: Create folder named Memos.old in the command prompt. Result: New folder and all sub-folders excluded by folder filter: not replicated. Action: Create folder named Memos.old in EXPLORER. Result: New folder and all sub-folders not excluded by filter: replicated. When creating new directories, EXPLORER.EXE first creates the directory "New Folder", then prompts the user for the desired directory name. FRS filters do not apply to renamed files and folders | Article Translations
|
Back to the top
