Solved

RoboCopy Command Help

Posted on 2013-01-19
5
365 Views
Last Modified: 2013-01-25
Have a file share that I need to migrate from one server to another and retain all of the NTFS permissions.  The source is \\Server\Data and the destination is \\App01\Data.  Need to copy all of the files and subfolders.  

Can someone help me out with the proper command?
0
Comment
Question by:AutomatedIT
  • 2
  • 2
5 Comments
 
LVL 13

Expert Comment

by:upalakshitha
ID: 38797556
Microsoft rich copy is the best tool to do this. It is in both GUI & command line.
Has many features over robo copy. By enabling it's advanced settings you can copy very faster than robo copy. Can preserve NTFS permissions & you can change them too very easily. It can process multi thread which  can use to copy faster than robo copy. Try it
http://social.technet.microsoft.com/Forums/en-US/w7itproperf/thread/33971726-eeb7-4452-bebf-02ed6518743e/
0
 
LVL 3

Expert Comment

by:smgoncalves
ID: 38797558
0
 
LVL 3

Accepted Solution

by:
smgoncalves earned 500 total points
ID: 38797563
OR

robocopy “\\OLDSERVER\OLDSHARE\” “\\NEWSERVER\NEWSHARE” /S /E /COPY:DATS

The command basically tells robocopy to copy the contents from the UNC path of the old share, to the UNC path of the new share. The /S and /E tell robocopy to copy any subdirectories, and empty directories. In this example the /COPY:DATS tells robocopy to copy the Data, Attributes, Timestamps and Security information. There are a couple of other elements that you can also copy if you want. To copy everything use /COPY:DATSOU or alternatively /COPYALL. Here is a list of all the flags you can use with the /COPY: part of the command:

D – Data
A – Attributes
T – Timestamps
S – Security i.e. NTFS permissions
O – Owner information
U – Auditing information

-smgoncalves
0
 
LVL 1

Author Comment

by:AutomatedIT
ID: 38798660
upalakshitha  --  What options would I use on Rich Copy to get all of the files and the security settings?


smgoncalves   --  Thanks for the command.  Will give it a try.
0
 
LVL 13

Expert Comment

by:upalakshitha
ID: 38799548
Exactly I have no remember to tell.you will find from it's menu.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can't install Citrix Receiver anymore 10 72
SYSLOG message format 3 42
Server 2008 R2 Datacenter Repair OS 20 49
Virtual Machine Consolidation needed status 6 63
You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now