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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RoboCopy copies 99% of NTFS permissions...

Status
Not open for further replies.

DayLaborer

Programmer
Jan 3, 2006
347
US
I am trying (hard!) to run RoboCopy with these options:[tt]
/V /FP /S /COPY:DAT /NP[/tt]
When I added the [tt]/SEC[/tt] it almost worked but not exactly: It copied all of the folders, subfolders and files properly - with their correct NTFS permissions with one crucial exception: the folders which contained no files did not receive their appropriate permissions. In otherwords, folder "X" would only get the appropriate NTFS permissions if folder "X" contained at least one file in folder "X" itself. Any folder that contained subfolders (even infinite levels deeps) would receive their appropriate permissions only if they contained at least one file...

PLEASE HELP...

Thanks!
Eliezer
 
/V /FP /E /SEC /MIR /NP

I hope you find this post helpful.

Regards,

Mark
 
Are you saying that "/MIR" is all I need? I don't want to delete anything...
 
/MIR will mirror the source over to teh destination.

You were also using /S which tells it to ignore empty subs. /E tells it ot copy even empty folders.

/SEC tells it to copy all the security.

I hope you find this post helpful.

Regards,

Mark
 
I know what the options I am using do... But what do I need to change to address my specific problem? Could you please explain how /MIR will be the right option? This data is critical - I cannot err with it...

Thanks!
 
/MIR compares the source and destination points, and makes sure they are the same. Let's say you run a robocopy on Monday, and it copies 50 GB of data. Then, throughout the week users create new files/folders and delete files/folders on the source. Without the /MIR option, the next time you robocopy, it would simply ADD the new files to the destination. The destination would still contain the files that were deleted on the source. /MIR keeps the destination exactly as the source - deleting files on the destination that were deleted on the source, etc. This, to me, is the recommended way of doing things if ANYONE is touching ANYTHING on the source from the time you start till the time you cut over.

I hope this makes sense.

Pat Richard, MCSE(2) MCSA:Messaging, CNA(2)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top