Well your using /COPYALL, which is equiv to /COPY:DATSOU...
/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).

Drop the copyall and just copy  "data" and if the dest perms have the inherit 
flags, it will prop the acls down.

From: helpdesk UK [mailto:[email protected]]
Sent: Monday, August 10, 2009 2:06 PM
To: NT System Admin Issues
Subject: Robocopy

Hello Everyone,

I am trying to copy data from external hdd to a server and have done mappings 
for new users as well hence the difference between the source names and 
destination names.

robocopy "Z:\AbbottK" "\\source-server\abbottke01$" /MIR /E /COPYALL /V /R:2 
/W:10
robocopy "Z:\AbdobakiR" "\\source-server\abdoubr01$" /MIR /E /COPYALL /V /R:2 
/W:10

What this script does is copies the data but for some reason resets all 
destination permissions to blank i.e. none nothing exist so this has happened 
every time I run this script.


The requirement of the script / batch is as follows

1. Should mirror source ( usb h.d.d. )==> destination (server share) if not 
same sync if same ignore and carry on further.
2. If fails retry at least once after waiting for 10 seconds
3. Should log everything (verbose) on the screen only i.e. command window.
4. Should inherit destination NTFS permissions and not reset / break it.


Any help is much appreciated.

cheers


ED







~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to