?
Solved

DFS one way replication - resync missing files

Posted on 2008-10-31
6
Medium Priority
?
1,217 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 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

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…
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…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

752 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