Advertisement

01.06.2008 at 06:10PM PST, ID: 23062647
[x]
Attachment Details

Using the robocopy command

Asked by Simon336697 in Microsoft Server, Microsoft Windows Operating Systems

Tags: ,

Hi guys hope you are well.

------------------
SCENARIO:
------------------

ServerA                                   ServerB
SourceFolderA                         DestinationFolderB
   |_folder1                                      |_folder1
   |_folder2                                      |_folder2
   |_folder3                                

Okay, what I want to do is the following.....
1. All folder/files (and subdirs) in SourceFolderA to be copied to DestinationFolderB        
2. Existing folders and files in DestinationFolderB to be maintained, that is, NOTHING in DestinationFolderB is to be overwritten.
3.If a folder is the same name in SourceFolderA and DestinationFolderB, then just copy to DestinationFolderB only files and folders that are different, and retain everything in DestinationFolderB.
So, if there are files and folders in a folder on ServerA that are not on ServerB, then copy over.
If there are folders with the same name on both, then look inside these to see if ServerB doesnt have any, and copy over, while always retaining ALL data on ServerB.

Any help on switches for robocopy here would be most appreicated.              

I did try the /MIR command, but this overwrites folders on the destination.    Start Free Trial
 
 
[+][-]01.06.2008 at 06:52PM PST, ID: 20596727

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Server, Microsoft Windows Operating Systems
Tags: robocopy, command
Sign Up Now!
Solution Provided By: Shift-3
Participating Experts: 1
Solution Grade: A
 
 
[+][-]01.06.2008 at 09:28PM PST, ID: 20597208

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.06.2008 at 09:42PM PST, ID: 20597234

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.07.2008 at 11:38PM PST, ID: 20606659

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628