Mark Clowes (38M 🇬🇧)

Index - Robocopy Times Bug

2020-02-26

Just encountered a bug in robocopy:


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

  Started : 25 February 2020 04:00:03
   Source : 
     Dest : 

    Files : *.*

 Exc Dirs : $RECYCLE.BIN
        System Volume Information

  Options : *.* /S /E /DCOPY:DAT /COPY:DAT /NP /MT:64 /R:1 /W:1 

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

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

                                     Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :                            8593      8591      2047         0         0       151
   Files :                         4267670   1842136   2425929         0         0       733
   Bytes :                       829.785 g 352.469 g 477.397 g         0         0 211.997 g
   Times : 4294967224:4294967258:429496725   0:00:00                       0:00:00   0:00:00
   Ended : 25 February 2020 21:20:43

That Total Time is a little off. Actual run time is about 19 hours. The H:M:S values are each quite close to a max unsigned integer (presuming the seconds value has a character truncated). Converted to a signed int makes it about -72 hours. Not sure what went wrong there!