I ran into a situation where we had to mirror our local DFS to all of the remote DFS locations. The problem was that there was one directory in each of the remote shares that was unique to that location and had to remain untouched. The first thing I thought of was to have powershell parse through the base directory trees and perform a recursive robocopy on each base. There were 177 with thousands of subdirectories under each one. That was just too much. I finally figured out to make sure there was also a directory in the source DFS named the same as the one in the destination that is to remain unchanged. Once that directory was in the source, I was able to exclude the directory from the source and it left the directory in the destination untouched.
19 January 2014
Home »
Miscellaneous
» How to exclude a directory on the destination while using the mirror switch in a Robocopy
How to exclude a directory on the destination while using the mirror switch in a Robocopy
Related Posts:
How to search all of your Youtube comments If you have been trying to find a way to search through all of your Youtube comments you have ever posted, there is a way. Youtube does not seem to have a feature that allows for you to see all of your comments, but you can … Read More
How to clean up your Facebook profile of old posts, messages, pictures, and videos All of us have posts that we want to clean up from the past. They may be posts that are now embarrassing, posts with exes that we want gone off of our profile, or maybe you are interviewing for a job that you know asks for y… Read More
Securely Removing Personal Data from your Corporate Windows Computer You have been using your company computer for your own private use, especially if it is a laptop. Now you want to securely remove the personal data off of the company equipment. First place, it's not wise to store your perso… Read More
How to exclude a directory on the destination while using the mirror switch in a Robocopy I ran into a situation where we had to mirror our local DFS to all of the remote DFS locations. The problem was that there was one directory in each of the remote shares that was unique to that location and had to remain unt… Read More
Executing Command Line on Remote Systems I have been a huge fan of PsExec ever since I became and SCCM Administrator. The problem with PsExec is that it transmits credentials in clear text. There is a great alternative to this and it is PAExec. It is freeware and c… Read More
0 comments:
Post a Comment