Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Robocopy? Directory Structure and Security only

Status
Not open for further replies.

lameid

Programmer
Jan 31, 2001
4,212
US
I want to copy the Directory Structure and Security BUT NOT FILES from one server to another.

The reason being, I want to create the structure and share the shares during normal hours and then copy the files at night for a server migration using new hardware.

It looks like the command below should work according to the Robocopy syntax help topic or at least
the one below should not copy files but this is not my experience.

robocopy source Destination /Copy:SOU /Create
robocopy source Destination /Create

Any thoughts or recommendations?
 
According to the description of the command that would still copy as normal but also delete files in the destination that were not in the source. I fail to see how that would be helpful.

I have also copied the directories with files now (I hate babysitting), so for me it is no longer an issue aside from curiosity.
 
You may want to try something else.

Robocopy /e /copyall [source] [destination]


/e = subfolders and files
/copyall = Data, Attributes, Timestamps, Security (NTFS ACLs), Owner info, Auditing info.


Here is the great thing...You can run this command with its the switches above. If you run the exact same command on the same source, Robocopy will compare the source with the destination for changes to folders and files. If it finds a change it will copy, otherwise it won't!!!




I had to copy 250GBs of data from one Win2003 server to another. I did the copy two nights in advance, and it took ~5 hours. The night that I had to make sure everything was copied, I ran the command again, and it only copied the items that were changed. That took ~25 minutes!!!!!

 
Thanks for the idea.. Too bad I've already moved everything piece by piece but that would have been easier.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top