We help IT Professionals succeed at work.
Get Started

RoboCopy with Exclude

781 Views
Last Modified: 2013-12-04
I am using robocopy to mirror two servers, with some exclusions.  For some reason when I test the robocopy locally from one dir to another it works, but if I use the same command, but with a mapped drive as the source, then the exclusions stop working.  Here are the two examples.

robocopy "c:\xamppdev\htdocs\opticselect" "c:\test\htdocs\opticselect" *.* /mir /s /xd c:\xamppdev\htdocs\opticselect\Connections c:\xamppdev\htdocs\opticselect\Connections\test c:\xamppdev\htdocs\opticselect\intranet\Connections c:\xamppdev\htdocs\opticselect\intranet\uploaded_files r:1 /w:1 /SEC /NP /LOG:c:\xamppcopy.txt /tee

robocopy "\\192.168.10.99\c$\xamppdev\htdocs\opticselect" "c:\test\htdocs\opticselect" *.* /mir /s /xd c:\xamppdev\htdocs\opticselect\Connections c:\xamppdev\htdocs\opticselect\Connections\test c:\xamppdev\htdocs\opticselect\intranet\Connections c:\xamppdev\htdocs\opticselect\intranet\uploaded_files r:1 /w:1 /SEC /NP /LOG:c:\xamppcopy.txt /tee

As you can see they are exactly the same command, with the only difference being the source dest.  Yet the results are vastly different.

Any help would be greatly appreciated.

TK
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 3 Answers and 4 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE