Solved

Robocopy commands

Posted on 2008-06-22
6
5,492 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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

760 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

20 Experts available now in Live!

Get 1:1 Help Now