Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Robocopy - Don't Enable Shares

Posted on 2013-11-23
1
Medium Priority
?
595 Views
Last Modified: 2013-11-23
I am migrating a server over.  I want to copy over all data from \\SERV1\USERS to \\SERV2\USERS.  (I want security rights preserved, everything in subdirectories copied as well, etc).  On SERV1 it is a shared folder.  I don't want to share it YET on SERV2.  That way I can come in on Monday, and just copy over any changes and be good to go, then share those folders on the new server.

What is my robocopy command?

Thank you.
0
Comment
Question by:dougp23
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 38

Accepted Solution

by:
Mahesh earned 1200 total points
ID: 39671791
Use below command

robocopy \\server1\share1 \\server2\share2 /e /zb /copyall /mir /sec /secfix /fp /log+:C:\log.txt

switches used:
 /e - copy all directory including empty once
/zb - use restartable mode; if access denied use Backup mode
/copyall - COPY ALL file info
/mir - MIRror a directory tree (equivalent to /E plus /PURGE)
/sec - copy files with SECurity (equivalent to /COPY:DATS)
/secfix - FIX file SECurity on all files, even skipped files
/fp - include Full Pathname of files in the output.
/log+ - output status to LOG file (append to existing log).

Replace souce and destination with actual once and chnage log file path if required.
Also if there is space in share folder name then enclose shared folder path in " " at both source and destination locations.

The command will ensure that folder gets copied along with all sub folders and files with all security permissions in recursive mode and generate log file for record.
After initial copy, when you run same command 2nd time it will just copy incremental changes

Please execute Robocopy command from win 7 SP1 or windows 2008 R2 SP1 with elevated command prompt

Mahesh
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
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 the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…

636 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