Solved

Robocopy problem with Maximum setlocal recursion.

Posted on 2007-03-26
8
3,526 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

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 84

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

830 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