?
Solved

Robocopy commands

Posted on 2008-06-22
6
Medium Priority
?
5,560 Views
Last Modified: 2013-11-14
Hi there,

Please can someone tell me if I have the correct robocopy commands for what I want to do.  Basically I want the source destination to be the master and NOT to be affected in anyway and i need robocopy to update the destination folder to bring it inline with the source folder.  I have the following command:

robocopy "\\source file" "\\destination file" /COPYALL /B /SEC /MIR /R:10 /W:1 /Tee /LOG+:e:\remote-backup-log.txt
technix-rcopy.txt
0
Comment
Question by:philipgecko
[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
  • 3
  • 2
6 Comments
 
LVL 10

Accepted Solution

by:
rynox earned 2000 total points
ID: 21841670
Looks pretty good, although I would make a couple of minor chages:

Get rid of the /SEC, /COPYALL covers this for you
Change /Tee to /TEE, not sure offhand if RoboCopy is case sensitive in its switches or not, but better safe than sorry.
0
 

Author Comment

by:philipgecko
ID: 21841765
and this will definately not affect the source file..?
0
 
LVL 10

Expert Comment

by:rynox
ID: 21841818
No it won't , will just be doing copying, nothing will change on the source.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:philipgecko
ID: 21841990
ok thx
0
 
LVL 5

Expert Comment

by:reswobslc
ID: 22011230
Of course you probably know this, but for the benefit of any newcomers to this thread, here is a warning:

The /MIR command line option will DELETE any file in the destination directory that isn't present in the source directory.  The job of /MIR is to make Destination look just like Source.  So if Source contains three files A,B,C and destination contains A,B,D, then /MIR will copy C and then permanently delete D.
0
 
LVL 10

Expert Comment

by:rynox
ID: 23146176
Hey philipgecko,

Did everything work out for you?

If everything is good, you should probably close this and assign points, if not we may be able to help you more.
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

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.
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…
Suggested Courses

771 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