XCOPY Win2K3 folders to preserve structure first then xcopy 'active' files with NTFS ACL permits
Posted on 2010-03-29
I want to "freeze" an oversized data drive to change it to a read-only resource, after having first replicated the entire folder structure to another server and then copying only files that have changed since 1/1/2008.
ASSUMPTION: XCOPY in Windows 2003 Server environment can do this. If not, is there a good utility out there that will?
1= If I use the XCOPY switches /t and /e for first xcopy command, then I'd have the structure including empty folders? Do I use the /o switch for permissions here?
2 = If I then use the /d:01-01-2008 switch for second xcopy command, I'd get just the documents access/modified on or after 1/1/2008? Do I use the /o switch for permissions here? I don't need to reiterate the /t and /e here, do I?
I didn't want to combine the two commands if the /d: date switch would limit which FOLDERS got copied. I want the same structure no matter the date-of-contents involved.
3 = Should I add the /h switch to pick up hidden/system files... even if it's supposed to be a data drive there could, for instance, be profile info stored there that might include system files.
4 = I do the "network sharing" after the xcopying is done?
5 = After xcopying done, I can set the original first-level folder/share as READ ONLY so that the permits will inherit down the folder structure?
Any help appreciated, high points for speedy response, because after long period of telling management this is needed, they reversed their wait-and-see decision to Yes, DO IT NOW.