Link to home
Start Free TrialLog in
Avatar of tomketchup
tomketchup

asked on

RoboCopy with Exclude

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
ASKER CERTIFIED SOLUTION
Avatar of bluepig
bluepig

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry, crossed posts there.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial