Solved

Robocopy problem with Maximum setlocal recursion.

Posted on 2007-03-26
8
3,453 Views
Last Modified: 2013-03-07
When running Robocopy to copy files from one share to another I receive the following output.  

"Maximum setlocal recursion level reached".

This output runs continuously until I manually kill the job.

I have tried the following robocopy script straight from DOS and also thru a bat file.

robocopy \\server\mysqlbackups f:\MYSQL *.* /MOV

What would cause this?



0
Comment
Question by:bta-nsg
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 18794798
what if you try it without the *.* (it's assumed anyway)
0
 

Author Comment

by:bta-nsg
ID: 18795406
Same error after removing *.*
0
 
LVL 87

Expert Comment

by:rindi
ID: 18795469
what happens if you stop sql services before doing the copy?
0
 

Author Comment

by:bta-nsg
ID: 18795635
After stopping SQL services the same problem exists.
0
Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

 
LVL 67

Expert Comment

by:sirbounty
ID: 18796254
What if you limit the file specs to a certain you type?
Instead of *.* use *.txt (or some other spec)
0
 
LVL 87

Expert Comment

by:rindi
ID: 18798019
Try:

robocopy "\\server\mysqlbackups" "f:\MYSQL" *.* /MOV

Also replace \\server with \\IPAddress if you haven't already tried that.
0
 
LVL 83

Accepted Solution

by:
oBdA earned 250 total points
ID: 18799115
You've probably named the script itself "robocopy.bat" or "robocopy.cmd" (or have a script with that name around somewhere), so the script calls itself instead of robocopy.exe. Either specify the full path and name to robocopy.exe in the script, or rename the script.
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 18799749
Yep - I figured that was it when I saw your post oBdA...good call! :^)
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
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 Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

759 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

18 Experts available now in Live!

Get 1:1 Help Now