DFS Replication does not provide multi-version rollback of replicated folders, but several DFSR behaviors and known issues can make it appear as if data has reverted or been lost, especially around restarts, database problems, or virtualization/snapshots. Key points and concrete recovery options are as follows.
- Why a “rollback” can happen in DFS Replication
a. Restoring or rolling back a DFSR member (especially virtualized)
If a DFSR server is restored from a snapshot, export, clone, or other image-level rollback, DFSR can stop replicating or behave incorrectly because the DFSR database no longer matches the file system state. This is explicitly called out for virtualized DFSR members:
- Restoring a server that runs DFS Replication from snapshots or saved states (for anything other than SYSVOL) can cause DFSR to fail and requires special database recovery steps.
- Exporting, cloning, or copying the VM is also unsupported for DFSR data volumes.
In such cases, DFSR may:
- Stop replication on a volume with internal database errors (for example, Event ID 2004/2106 with errors like 9214/9014).
- Require database recovery or non-authoritative/authoritative sync to resume correct replication.
If one server was effectively “rolled back” to an older state (for example, via hypervisor snapshot or backup restore) and then allowed to replicate, that older state can overwrite newer data on its partners, depending on which side “wins” in DFSR conflict resolution.
Relevant behavior is documented under “Snapshots and saved states” and the linked article on DFSR not replicating after restoring a virtualized server’s snapshot.
Distributed File System (DFS) Replication overview
b. DFSR database failures and auto-recovery
When DFSR encounters internal database errors, it can:
- Stop replication on a volume (Event ID 2004, error 9214/9014).
- Then perform an internal database recovery and resume replication (Event ID 2106).
If the DFSR database is lost or rebuilt, the member can receive a new database GUID and behave as if it is a new member. Depending on configuration (for example, StopReplicationOnAutoRecovery registry setting), this can lead to:
- Replication being halted until manually fixed, or
- Replication resuming with a potentially inconsistent view of what is authoritative.
A known issue is that after a hotfix is installed and the DFSR database is lost/rebuilt, or when a member cannot contact downstream partners (for example, closed schedules), replication backlog and state can become problematic.
You find a very large increase in the DFS Replication backlogs
c. Known DFSR bugs causing data loss or unexpected deletions
There are documented issues where DFSR can unexpectedly delete folders or files on upstream servers after the DFS Replication service restarts. For Windows Server 2003/2008, the workaround is explicitly “do not stop the DFS Replication service” until the hotfix is applied.
If a similar bug or unpatched state exists in a mixed environment (2008 R2 and 2019), a restart of the DFSR service or the server could trigger unexpected deletions or state changes that look like a rollback.
Some folders or some files are unexpectedly deleted on the upstream server after you restart the DFS Replication service
- How DFSR handles conflicts and why newer data can disappear
a. Conflict resolution behavior
When the same file is updated on different servers, DFSR:
- Keeps the version that was saved last.
- Moves the losing version into the local
DfsrPrivate\ConflictAndDeleted folder on the server that resolves the conflict.
The ConflictAndDeleted folder:
- Is not replicated.
- Acts as a cache and is cleaned up when its quota is exceeded or disk space is low.
- Does not guarantee preservation of all conflicting files.
If a server with an older dataset appears to have “newer” timestamps (for example, because of clock skew or database inconsistencies), DFSR can treat the older content as the winner and push it out, moving the truly newer versions into ConflictAndDeleted on the other member. To users, this looks like a rollback.
DFS Replication FAQ
b. Staging and schedules
DFS Replication does not stage or replicate files outside of scheduled replication times or when bandwidth quotas are exceeded. If schedules are misconfigured or closed, a large backlog can accumulate, and when replication resumes, a burst of updates can overwrite files in bulk.
DFS Replication FAQ
- Why backups also show the old state
DFS Replication itself does not alter how backup software sees the file system. If backups show the same old state, likely causes include:
- The backup source is a server that was effectively rolled back (for example, VM snapshot) and is now the DFSR member backing up.
- The backup solution is targeting a member whose DFSR database or replication state caused it to revert to or present older data.
- Backups were taken after DFSR had already overwritten newer files with older versions from another member.
Additionally, for virtualized DFSR members, guidance is to:
- Use backup software inside the guest VM to back up replicated folders.
- Not back up or restore the DFSR server from the host level, because that can cause DFSR database inconsistencies and the kind of behavior being observed.
Distributed File System (DFS) Replication overview
- Options to recover lost or newer versions
a. Recover from ConflictAndDeleted or PreExisting folders
If DFSR treated newer files as conflicts and moved them into ConflictAndDeleted or PreExisting on either server, they can be recovered using PowerShell:
-
Get-DfsrPreservedFiles to enumerate preserved files.
-
Restore-DfsrPreservedFiles to restore them.
This is the only DFSR-native way to recover files that DFSR itself moved aside.
DFS Replication FAQ
b. Recover from shadow copies / backups
DFS Replication does not maintain its own version history beyond ConflictAndDeleted/PreExisting. To recover:
- Use File History, “Restore previous versions” in File Explorer, or restore from backup of the underlying file system or share.
- Ensure that the restore is done in a DFSR-safe way (for example, restoring only data, not rolling back the entire DFSR server/VM image) to avoid re-triggering database inconsistencies.
DFS Replication FAQ
- Recommended next steps for this scenario
- Check DFSR event logs on both DC-FS01 (2008 R2) and DC-FS02 (2019) around 2/22 for:
- Event IDs 2004, 2106, 2213, or other DFSR database/auto-recovery events.
- Any indications of database rebuilds or auto-recovery.
- Confirm whether either server was restored from a VM snapshot, export, or image-level backup around 2/8–2/22.
- On both servers, inspect
DfsrPrivate\ConflictAndDeleted and PreExisting using:
-
Get-DfsrPreservedFiles to see if the missing “newer” files are there.
- If found, use
Restore-DfsrPreservedFiles to recover them.
- Verify backup configuration:
- Ensure backups are taken from a DFSR member that is healthy and not rolled back.
- Avoid host-level VM rollback for DFSR members; use in-guest backups.
- For the Windows Server 2008 R2 member:
- Review whether the DFSR hotfixes related to unexpected deletions and backlog issues are applied.
- If not, plan to apply the relevant updates or consider decommissioning the legacy OS from the replication topology.
- After recovery, validate replication health:
- Use
dfsrdiag backlog and propagation tests, DFS Management diagnostic reports, or DFSR PowerShell cmdlets to confirm that replication is in sync and stable.
DFS Replication FAQ
In summary, DFSR itself does not intentionally roll back to a previous date, but a combination of VM/image rollback, DFSR database recovery, conflict resolution, and known bugs around service restarts can cause newer data to be overwritten and appear lost. Recovery is primarily through ConflictAndDeleted/PreExisting folders and external backups; DFSR does not maintain a full version history beyond those preserved files.
References: