Solved

How to copy just 1 file with NTFS security with ROBOCOPY?

Posted on 2010-09-11
5
795 Views
Last Modified: 2012-05-10
How to copy just 1 file with NTFS security with ROBOCOPY?
0
Comment
Question by:SAM2009
5 Comments
 
LVL 65

Expert Comment

by:rockiroads
ID: 33655679
What do you mean by ntfs security, are you talking about the security info as well?

/secfix I think might do it
0
 
LVL 65

Accepted Solution

by:
rockiroads earned 100 total points
ID: 33655682
actually it might just be /sec. I am confirming this with the list of switches here http://www.mydigitallife.info/2007/05/07/robocopy-syntax-command-line-switches-and-examples/
0
 
LVL 84

Assisted Solution

by:oBdA
oBdA earned 100 total points
ID: 33655964
You just add the file name(s) as argument after the source and target folder:
robocopy "S:\ource\FOLDER" "T:\arget\FOLDER" "TheFileName.ext" /copyall
0
 
LVL 6

Assisted Solution

by:Hisham_Elkouha
Hisham_Elkouha earned 50 total points
ID: 33656140
/sec would do it
0
 
LVL 1

Author Closing Comment

by:SAM2009
ID: 33659234
I already tried /sec and /copy...both work fine but there was something that maked me confused.

Exemple: robocopy "S:\ource\FOLDER" "T:\arget\FOLDER" "TheFileName.ext" /copyall

or robocopy "S:\ource\FOLDER" "T:\arget\FOLDER" "TheFileName.ext" /sec


With robocopy XP010 even if folder in target does not exist it will create it and copy file with security NTFS. This is not the case with XP027, with XP027 version like in Win 2008 if folder specified in target is missing the file will be copied but not the permisssion.

Thanks for your helps.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question