Solved

DFS one way replication - resync missing files

Posted on 2008-10-31
6
1,208 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 7

Accepted Solution

by:
cmarandi earned 125 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

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

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

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

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Learn about cloud computing and its benefits for small business owners.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

737 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