Solved

Robocopy commands

Posted on 2008-06-22
6
5,517 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
  • 3
  • 2
6 Comments
 
LVL 10

Accepted Solution

by:
rynox earned 500 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
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…

730 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