robocopy script : Insufficient system resources

Marc Riera picture Marc Riera · May 24, 2013 · Viewed 15.6k times · Source

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.

Answer

Franco Rondini picture Franco Rondini · Jun 1, 2013

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 swith to your comman 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"