Robocopy - ignore the Folder NTFS Permission

Batch, ASP, JScript, Kixtart, etc.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
ccs1981
Posts: 2
Joined: Wed Mar 16, 2011 11:05 pm

Robocopy - ignore the Folder NTFS Permission

Post by ccs1981 » Wed Mar 16, 2011 11:07 pm

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,

User avatar
ccs1981
Posts: 2
Joined: Wed Mar 16, 2011 11:05 pm

Robocopy - ignore the Folder NTFS Permission

Post by ccs1981 » Wed Mar 16, 2011 11:07 pm

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,

jvierra
Posts: 13901
Joined: Tue May 22, 2007 9:57 am
Contact:

Robocopy - ignore the Folder NTFS Permission

Post by jvierra » Thu Mar 17, 2011 1:14 am

/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).

Locked