Share via

Robocopy weirdness

Jim 386 Reputation points
2023-05-19T17:02:15.9266667+00:00

I have been running the following command to copy files every morning at 01:00 over the VPN to a system offsite for disaster recovery reasons:

robocopy.exe "\SERVER\Share" "E:\Share" /COPYALL /SECFIX /E /XO /R:1 /W:1 /nfl /ndl /LOG+:"C:\Temp\companyshare.log"

The log it produces always looks like this:

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

  Started : Saturday, May 13, 2023 11:05:28 AM
   Source : \\SERVER\Share\
     Dest : E:\Share\

    Files : *.*
	    
  Options : *.* /NDL /NFL /S /E /COPYALL /SECFIX /XO /R:1 /W:1 

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


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

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :     37540        13         0         0         0      8214
   Files :    242444    126023    116421         0         0     14317
   Bytes : 229.489 g 141.921 g  87.568 g         0         0  43.925 g
   Times :  15:58:52  11:41:57                       0:00:00   4:16:54


   Speed :             3618099 Bytes/sec.
   Speed :             207.029 MegaBytes/min.
   Ended : Sunday, May 14, 2023 3:04:21 AM

Indicating it copied over some amount (eg:141.921g) of files and was successful.

But for some reason over the last 2 weeks I get this every night:

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

  Started : Tuesday, May 16, 2023 1:00:01 AM
   Source : \\SERVER\Share\
     Dest : E:\Share\

    Files : *.*
	    
  Options : *.* /NDL /NFL /S /E /COPYALL /SECFIX /XO /R:1 /W:1

Giving no indication that files were copied. If examine the destination location I do find that, in fact, files were copied.

If I run the same .bat file manually (not in Task Schedular) it runs fine and gives me the first kind of output.

I have been running this every morning at 01:00 for years now, nothing has changed (other then system updates). It runs on the receiving machine. Both machines are Server 2012 Standard.

Because it works fine manually, it makes it hard to debug. Any ideas how I could do that?

Windows for business | Windows Server | User experience | Other
0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2023-05-19T19:01:49.6066667+00:00

    Ok, might try delete / recreate the task. The task user may have somehow lost access to \SERVER\Share\

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    Was this answer helpful?

    0 comments No comments

  2. Anonymous
    2023-05-19T18:02:00.6366667+00:00

    So is E:\ a local disk or a mapped drive?

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.