If you’re copying a subset of data from a bigger source set of data, then never use /MIR or you will run a high risk of loosing data. In practice, permissions were not copied to folders with ampersands in the name using robocopy or emcopy – in fact robocopy didn’t copy permissions at all! *Note how I’ve changed the destination folder to not include the ampersand character. Similar to the robocopy commands above, these emcopy commands worked almost* perfectly for meĮmcopy “%source%” “%destination%” /secfix /xf * /lev:1 I recommend using emcopy to copy folder structures and their NTFS permissions. In real-world practice, I have found that robocopy is woefully unreliable when it comes to copying permissions (using the /e /sec /xf * switches). Robocopy.exe “%source%” “%destination%” /MIRįor more robocopy wisdom, check this post here Or if you can get away with it without breaking links… With that little pearl of wisdom out of the way, what about when your users have used ampersand characters in their folder names and you’re trying to robocopy the data to it’s new home, only to have the copy fail?
0 Comments
Leave a Reply. |