Solved

DFS one way replication - resync missing files

Posted on 2008-10-31
6
1,170 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 125 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Hi,
any chance you can share that Robocopy script with us ?
I have the same problem,
Thanks,
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:manta357
Comment Utility
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
Comment Utility
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
Comment Utility
Excellent thanks, I'll give that a go.
Cheers,
Craig
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now