1.

Solve : Robocopy Helps.. copying data skip NTFS permission?

Answer»

Dear all,

i am facing a problem to write the coding robocopy.
i want do a fully backup from 1 storage server to another server. however i want to skip copying NTFS permission for EVERY sharing folder.
it is because, i share the folder with local group user.

i merge the backup server as Z drive;
below is my robocopy coding:

robocopy D:\HV_Design z:\HV_Design /copyall /E /R:O /w:5 /r:5 /PURGE

i USE copy/all, therefore the NTFS permission also copy TOGETHER. how to skip the folder security permission? i only want to backup the folder content only.

please help. appreciate to get your reply soon.

thanks.

Best Regards,I recommend XCOPY instead of this "robocopy"...

CODE: [SELECT]xcopy D:\HV_Design\*.* Z:\HV_Design /S /T /E /YQuote from: Fleexy on March 21, 2011, 06:33:19 PM

I recommend XCOPY instead of this "robocopy"...
ROBOCOPY is an enhanced XCOPY that comes with Vista and windows 7.


For XCopy, /S,/T, and /E are mutually exclusive.


As for ROBOCOPY, it doesn't copy security permissions for any files (including folders" by default... /copyall however specifies you do want to copy all that.
From ROBOCOPY /?:
Code: [Select] /COPY:copyflag[s] :: what to COPY for files (default is /COPY:DAT).
(copyflags : D=Data, A=Attributes, T=Timestamps).
(S=Security=NTFS ACLs, O=Owner info, U=aUditing info).


Discussion

No Comment Found