What happens if you copy a file over manually using the GUI? Does it
inherit permissions as expected? Or does it blank them out like your
script? 

 

 

 

Chris Bodnar, MCSE
Sr. Systems Engineer
Distributed Systems Service Delivery - Intel Services
Guardian Life Insurance Company of America
Email: [email protected]
Phone: 610-807-6459
Fax: 610-807-6003

  _____  

From: [email protected] [mailto:[email protected]] 
Sent: Monday, August 10, 2009 4: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

 

 

 

 



-----------------------------------------
This message, and any attachments to it, may contain information
that is privileged, confidential, and exempt from disclosure under
applicable law.  If the reader of this message is not the intended
recipient, you are notified that any use, dissemination,
distribution, copying, or communication of this message is strictly
prohibited.  If you have received this message in error, please
notify the sender immediately by return e-mail and delete the
message and any attachments.  Thank you.
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to