?
Solved

DFS one way replication - resync missing files

Posted on 2008-10-31
6
Medium Priority
?
1,230 Views
Last Modified: 2012-05-05
I'm just setting up and testing DFS on a pair of 2003 R2 servers, each is in a separate office.  One contains master information which is replicated to the branch office using a one way replication scenario.  If someone accidentally deletes files in the branch office how can I get DFS to resync and add the missing files back to the branch office from the master?
0
Comment
Question by:manta357
  • 3
  • 2
6 Comments
 
LVL 7

Accepted Solution

by:
cmarandi earned 500 total points
ID: 22852128
you can't... if the settings is one way, it won't sync... this is how it protects from deleting it at both locations.

you can try to schedule a job to copy back from target to source at the end of night any files that are not existing on source... kind of like a batch file to do an xcopy from target to source witha a "no" do not replace.
0
 

Author Closing Comment

by:manta357
ID: 31512107
thanks.  I was afraid DFS didn't have that capability.  I looked at xcopy and robocopy and settled on a script running robocopy /mir   It will update any out of sync files that might occur and I can log the results to file if needed.

cheers. Andrew.
0
 

Expert Comment

by:Japsterex
ID: 33848152
Hi,
any chance you can share that Robocopy script with us ?
I have the same problem,
Thanks,
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:manta357
ID: 33849841
here is a snippet from the latest script.  It's saved as a .cmd file which I run using the Windows scheduler.


Set Source="\\srv-us3\Marketing\Media Library"
Set Destination="\\srv-can5\Marketing\Media Library"
Set LogFile="C:\Replication\Logs\can5.mediaLibrary.txt"
robocopy %Source% %Destination% /E /PURGE /XA:H /XD DfsrPrivate /log+:%LogFile% /NP

Set Source="\\srv-us3\Marketing\SF330"
Set Destination="\\srv-can5\Marketing\SF330"
Set LogFile="C:\Replication\Logs\can5.sf330.txt"
robocopy %Source% %Destination% /E /PURGE /XA:H /XD DfsrPrivate /log+:%LogFile% /NP


hope it helps.
Andrew
0
 

Author Comment

by:manta357
ID: 33849931
FYI
The /mir option is equivalent to the /e plus /purge options with one small difference in behavior:

    * With the /e plus /purge options, if the destination directory exists, the destination directory security settings are not overwritten.

    * With the /mir option, if the destination directory exists, the destination directory security settings are overwritten.

I ended up using the /E /PURGE option because my destination folders have a different set of NTFS permissions - they are read only for users.

Andrew
0
 

Expert Comment

by:Japsterex
ID: 33857806
Excellent thanks, I'll give that a go.
Cheers,
Craig
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question