Link to home
Create AccountLog in
Windows Server 2008

Windows Server 2008

--

Questions

--

Followers

Top Experts

Avatar of speechlys
speechlys

robocopy failing on large copy
Hi,

I am after some help with Robocopy.

Basically I have a share with 10 million flat files and 369k folders. this is actually a document management system file store.  I need to copy the entire store entirely not missing a single file and I need to leave the source files in place as well.

I need to move this file store to a new source directory. I have done this in the past and been successful using the command below.


@ehho off
@ECHO     !!!!!!!!!!!!!    RoboCopy - Large file copy - Do you want to continue    !!!!!!!!!!!!!
PAUSE

@echo Copy \\server1\copy-fixing-issue
C:\Windows\SysWOW64\Robocopy.exe \\server1\WSDOCS\DB1 \\server2\WSDOCS2\db1 /MIR /MT *.* *.*  /LOG:"\\server2\WSDOCS2\db1.log"

pause


however now I am hitting a brick wall in that the copy is bombing out complaining robocopy is running out of memory, the sever has adequate memory 32GB, with nothing else on it apps wise etc.  I tried upping it to 128 GB Because the server is VM and it makes no difference. The memory never seems to be busy either unless its re-realising back to the OS once its failed.

I was originally doing this on a server 2012 server so I tried it on  2008 R2 server but it made no difference I still get the same error in the robocopy log

the servers are all on the same network in the same office etc so its not like there is link issues to overcome, any ideas?

once I have done the first initial copy, I then have to offline the document management system out of hours and do the same copy again but a differential so pick up any differences. this has to be right, i cant miss any files...





-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows                              
-------------------------------------------------------------------------------

  Started : Sun Jul 12 17:18:23 2015

   Source : \\server1\WSDOCS\db1\
     Dest : \\server2\WSDOCS2\db1\

    Files : *.*
          
  Options : *.* /S /E /COPY:DAT /PURGE /MIR /MT:8 /R:1000000 /W:30

------------------------------------------------------------------------------

ERROR : Robocopy ran out of memory, exiting.
ERROR : Invalid Parameter #%d : "%s"

ERROR : Invalid Job File, Line #%d :"%s"


  Started : %hs

   Source %c

     Dest %c

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CDDavid Johnson, CD🇨🇦

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of Gerald NegrotaGerald Negrota🇮🇹

If server1 and server2 are virtual servers, you can:

1) add another disk to server1 in mirror with the FS store
2) sync
3) brake the mirror
4) move disk to server2

For Robocopy, run batch as Administrator.  I guess that is User Rights related.

SOLUTION
Avatar of QlemoQlemo🇩🇪

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.

Avatar of speechlysspeechlys

ASKER

you don't know how stupid I feel right now, the old server was 32 bit and I have just assumed my old script should work from before as it worked fine. I didn't even think about changing the variable to 64bit completely overlooked ! thanks for pointing it out.....

I have done it before with robocopy with a similar number of flat files it handled it ok...thanks again will let you know if the 64 bit doesn't work but I think it will.

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

Windows Server 2008

Windows Server 2008

--

Questions

--

Followers

Top Experts

Windows Server 2008 and Windows Server 2008 R2, based on the Microsoft Vista codebase, is the last 32-bit server operating system released by Microsoft. It has a number of versions, including including Foundation, Standard, Enterprise, Datacenter, Web, HPC Server, Itanium and Storage; new features included server core installation and Hyper-V.