robocopy script : Insufficient system resources

4

I have a script that was working before. A robocopy script.

The backup server broke and the new one misses some configuration, but I'm not a windows guy. :'(

The script is the following:

C:\Windows\system32\Robocopy F:\Equipos \\NASSERVERBACKUP\F$\BACKUPS_NASSERVER\Equipos_Horario *.* /purge /tee /e /log:F:\ScriptBackup\LogsBackup\NASSERVERBACKUP_horario.txt /nfl /r:1 /w:1

And the output is this:

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

  Started : Fri May 24 16:35:01 2013

2013/05/24 16:35:02 ERROR 1450 (0x000005AA) Getting File System Type of Destination \\NASSERVERBACKUP\F$\BACKUPS_NASSERVER\Equipos_Horario\
Insufficient system resources exist to complete the requested service.


   Source : F:\Equipos\
     Dest - \\NASSERVERBACKUP\F$\BACKUPS_NASSERVER\Equipos_Horario\

    Files : *.*

  Options : *.* /NFL /TEE /S /E /COPY:DAT /PURGE /R:1 /W:1 

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

2013/05/24 16:35:02 ERROR 1450 (0x000005AA) Accessing Destination Directory \\NASSERVERBACKUP\F$\BACKUPS_NASSERVER\Equipos_Horario\
Insufficient system resources exist to complete the requested service.

Waiting 1 seconds... Retrying...
2013/05/24 16:35:03 ERROR 1450 (0x000005AA) Accessing Destination Directory \\NASSERVERBACKUP\F$\BACKUPS_NASSERVER\Equipos_Horario\
Insufficient system resources exist to complete the requested service.


ERROR: RETRY LIMIT EXCEEDED.

2013/05/24 16:35:03 ERROR 1450 (0x000005AA) Creating Destination Directory \\NASSERVERBACKUP\F$\BACKUPS_NASSERVER\Equipos_Horario\
Insufficient system resources exist to complete the requested service.

Waiting 1 seconds... Retrying...
2013/05/24 16:35:04 ERROR 1450 (0x000005AA) Creating Destination Directory \\NASSERVERBACKUP\F$\BACKUPS_NASSERVER\Equipos_Horario\
Insufficient system resources exist to complete the requested service.


ERROR: RETRY LIMIT EXCEEDED.

2013/05/24 16:35:04 ERROR 1168 (0x00000490) Creating Destination Directory \\NASSERVERBACKUP\F$\BACKUPS_NASSERVER\Equipos_Horario\
Element not found.

Does anyone know what can be wrong?

Thanks.

windows
backup
robocopy
asked on Stack Overflow May 24, 2013 by Marc Riera

4 Answers

4

Based on a similar issue discussed here: the errors you are getting are issues related to Windows memory managent and availability of specific kind of resources (Kernel Paged Memory) which could happen during backups of big filesystems, or particularly large files.

Windows has a certain amount of memory pool space that it can allocate to programs, if the program uses all the memory available from that pool then ERROR 1450 (0x000005AA) raise up.

As literature several Microsoft Knowledge Base Articles describe this error code:

Specially Q304101 describes how to monitor resources to determine your state and offers a possible solution by tuning PoolUsageMaximum setting in Memory Management; this involvers changing registry settings therefore requires many cautions; you have been warned to read careffully the article before.

One thing you might do is separate the backup into different backups; together with monitoring memory this could help isolating the problem.

Let me suggest you an additional hint, to consider adding the /XJ switch to your command line script; this way robocopy eXclude Junctions , this is important for example when copy user accounts (the \Users.. foleder) in some Windows such as Vista, because without this you can run in loop coused by some kind of hidden links called "junctions"

answered on Stack Overflow Jun 1, 2013 by Franco Rondini • edited May 21, 2021 by InteXX
0

The Robust File Copy (Robocopy) won't be very robust if set to retry only once after waiting only one second. Retrying multiple times after waiting long enough for transitory errors to resolve will succeed a lot more often.

/R:n :: number of Retries on failed copies: default 1 million.
/W:n :: Wait time between retries: default is 30 seconds.

Retry a dozen times with a 30 second wait between:

/R:12 /W:30
answered on Stack Overflow Jun 7, 2013 by Brian • edited Jun 7, 2013 by Brian
0

I use 7-Zip to split any files larger than 4GB into 650MB Chunks. (7-Zip limits what size you can split them into but, anything under 4GB works.) I then use Robocopy to copy each chunk down and use 7-Zip to reassemble the chunks back into the file. It even works with SQL Backup files. I haven't tried to automate this yet as I don't have to do it too often.

answered on Stack Overflow Aug 13, 2013 by Dave • edited May 21, 2021 by InteXX
0

I found that using /Z restartable mode works best. It is a bit slower but at least it copes with larger files

answered on Stack Overflow Dec 17, 2014 by Bigstoo

User contributions licensed under CC BY-SA 3.0