While using robocopy
might seem like a quicker and simpler solution than letting DFS Replication (DFSR) handle the reconciliation, it's generally not recommended as a primary strategy after a significant hardware failure and month-long data discrepancy. Here's why:
Problems with robocopy
Overwrites:
- Loss of DFSR Metadata:
robocopy
is a file-copying tool, not a replication tool. It doesn't preserve DFSR metadata, such as version vectors and change tracking information. This means that after a robocopy
overwrite, DFSR will lose its ability to track changes effectively, leading to potential inconsistencies and replication problems.
- Conflict Resolution Issues:
robocopy
will overwrite files based on its specified parameters (e.g., last modified date). It doesn't have the sophisticated conflict resolution mechanisms of DFSR. This can lead to unintended data loss or overwrites.
- Active Directory and DFSR Database Inconsistencies:
robocopy
only copies files. It doesn't address potential inconsistencies in Active Directory or the DFSR database. This can lead to further replication problems.
- Permissions Issues:
- Robocopy can copy permissions, but it is another area where errors can occur. If the source and destination servers have different security principals, or any differences in the active directory, permissions issues will occur.
- Potential for Data Corruption:
- If the source data is corrupted,
robocopy
will simply copy the corrupted files to the destination.
- No Versioning:
- Robocopy will overwrite the files. There will be no record of the old files, unless you specifically set up robocopy to archive the old files.
When robocopy
Might Be Useful (with Caution):
- Initial Data Seeding:
- In some cases,
robocopy
can be used to perform an initial data seeding before enabling DFSR. This can speed up the initial replication process. However, this should be done carefully and only when you're sure the source data is clean and consistent.
- Data Recovery (Specific Files):
- If you need to recover specific files or folders from a backup,
robocopy
can be a useful tool. However, this should be done selectively and with careful consideration of potential conflicts.
- Post conflict resolution:
- After the DFS-R conflict resolution has completed, and the administrator has reviewed the conflict and deleted folder, then robocopy could be used to copy data from the conflict and deleted folder, into the main file structure.
Better Alternatives:
- Careful DFSR Reconciliation:
- The best approach is usually to allow DFSR to handle the reconciliation process, even if it takes time. Monitor the process closely and use DFSR diagnostic tools to identify and resolve conflicts.
- New DFS Partner:
- If possible, build a new DFS partner and copy the necessary data. This avoids the complexities of reconciling an old server.
- Backup Software Restore:
- Use the backup software's restore functions to restore the data. Most backup software is designed to restore files and folders while maintaining integrity.
In summary: While robocopy
is a powerful tool, it's not a suitable replacement for DFSR's replication mechanisms. Using it to overwrite shares after a major failure can lead to data loss, replication problems, and other issues. Prioritize DFSR reconciliation or consider building a new DFS partner.