Link to home
Start Free TrialLog in
Avatar of manta357
manta357

asked on

DFS one way replication - resync missing files

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?
ASKER CERTIFIED SOLUTION
Avatar of cmarandi
cmarandi
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of manta357
manta357

ASKER

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.
Hi,
any chance you can share that Robocopy script with us ?
I have the same problem,
Thanks,
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
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
Excellent thanks, I'll give that a go.
Cheers,
Craig