Quantcast
Channel: File Services and Storage forum
Viewing all articles
Browse latest Browse all 10672

Set-DfsReplicatedFolder -directorynametoexlude (use of -directorynametoexlude)

$
0
0

Hello all,

I am trying to replicate data from my old File Servers to the new ones. So far so good, except when I try to replicate folders which are already part of other replication groups. Of course, when I try to work through powershell I create first the group, then I specify the name of the replicated folder, I add the group members, I specify the source and destination servers and finally I specify the membership and the content path.

In the content path that I give, there's a subfolder which contains 5 subfolders. Let's say that the parent folder is named folder0 and the five subfolders are named folder1 , folder2 ....to folder5 (so my folder structure is E:\Folder\Folder0\Folder1 , E:\Folder\Folder0\Folder2 etc...). So, these five folders are part of existing replication groups. Of course , after I finish the configuration, ServerA which is the source gives me an event with ID 6408 saying that the service detected that one of its private folders overlaps with one of the existing replicated folders.

Overlapped Folder: E:\Folder (the parent folder)

Replicated folder: E:\Folder

Then I thought to use the Set-Dfsreplicated folder cmdlet together with the parameter -DirectoryNameToExclude , thinking that if I say :

Set-DfsReplicatedFolder -GroupName group1 -FolderName * -DirectoryNameToExclude "Folder0"

would exclude the folder0 from the replication and wouldn't give me the error I mentioned above.

Do I make any mistake here? Does the -directorynametoexclude parameter is to exclude a directory , but only if it is not a part of an existing group? If so, what you suggest me to do? Removing the existing replication groups which cause this problem is something I can't do because the mentioned folders are used from all of our branch offices around the world and they are filled with data which are edited almost 24/7

The old server runs Win Server 2008 R2 and the new one 2012 R2

Thank you all in advance!


Viewing all articles
Browse latest Browse all 10672

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>