Solved

Robocopy problem with Maximum setlocal recursion.

Posted on 2007-03-26
8
3,506 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 88

Expert Comment

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

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 

Author Comment

by:bta-nsg
ID: 18795635
After stopping SQL services the same problem exists.
0
 
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 88

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
An article on effective troubleshooting
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

813 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

12 Experts available now in Live!

Get 1:1 Help Now