none
RoboCopy with /MT switch seems to show different summary info... why? RRS feed

  • Question

  • Hi

    If I run

    robocopy "D:\robocopy_test_folders\Newfolder1" "D:\robocopy_test_folders\Newfolder2"  /e

    Then the results are as follows:-

                  Total    Copied   Skipped  Mismatch    FAILED    Extras
        Dirs :        61         0        61         0         0         0
       Files :      3302        0      3302         0         0         0
       Bytes :   4.191 g      0   4.191 g         0         0         0
       Times :   0:00:00   0:00:00                       0:00:00   0:00:00
       Ended : 06 June 2018 17:13:03

    If I run

    robocopy "D:\robocopy_test_folders\Newfolder1" "D:\robocopy_test_folders\Newfolder2"  /e /mt:16

    Then the results now are:-

                 Total    Copied   Skipped  Mismatch    FAILED    Extras
        Dirs :        61        61        61         0         0         0
       Files :      3261       0      3263         0         0         0
       Bytes :   4.156 g     0   4.156 g         0         0         0
       Times :   0:00:00   0:00:00                       0:00:00   0:00:00
       Ended : 06 June 2018 17:15:30

    My question then is why does adding /MT:16 change the results in the log e.g. Dirs Copied shows 61 but without MT it shows 0

    Also folder count is different when using /MT - without it is Total 3302 and Skipped 3302 - but with it is Total 3261 and Skipped 3263

    And finally bytes is different too - with /MT it shows 4.156g but without it shows 4.191g

    Anyone got any ideas why adding /MT gives different results

    Before anyone asks I have tried same test on multiple computers and servers and the same issue as above occurs everytime


    Darren Rose

    Wednesday, June 6, 2018 4:18 PM

All replies

  • Hi I am seeing the same thing on windows 10:

    The MT and non MT file transfers back to back in different target directories.

    On the first run the directories are created and it's correct. However on the second run the Files copied summary is incorrect.

    #Testing on my local pc with MT
    $cesSuitePRODSOURCE = 'D:\CES Refresh Scripts'
    $cesSuite = 'D:\CES Refresh Scripts TargetMT'
    $SuiteSourceDir = $cesSuitePRODSOURCE
    $SuiteDestinationDir = $cesSuite
    $SuiteExcludeDirConfigFiles = "$($cesSuitePRODSOURCE+'\Exclude sql')"
    $SuiteExcludeDirEnvironment = "$($cesSuitePRODSOURCE+'\Exclude sql2')"
    $SuitExcludeFileT1Envxml = $($cesSuitePRODSOURCE+'\readme.txt')
    $SuitExcludeFileClientLnk = $($cesSuitePRODSOURCE+'\finuser - full.bat')
    $options = $SuiteSourceDir, $SuiteDestinationDir, $SuiteExcludeDir, "/XD", $SuiteExcludeDirConfigFiles, $SuiteExcludeDirEnvironment, "/XF", $SuitExcludeFileT1Envxml, $SuitExcludeFileClientLnk, "/MIR","/B","/SEC", "/R:3", "/W:5", "/NFL", "/NDL", "/NP", "/MT:32" #,"/L" #/L for log to screen without action /MT is new = Multithreading. See refresh documentation for more info
    & robocopy $options
    #Testing on my local pc without MT
    $cesSuitePRODSOURCE = 'D:\CES Refresh Scripts'
    $cesSuite = 'D:\CES Refresh Scripts TargetNoMT'
    $SuiteSourceDir = $cesSuitePRODSOURCE
    $SuiteDestinationDir = $cesSuite
    $SuiteExcludeDirConfigFiles = "$($cesSuitePRODSOURCE+'\Exclude sql')"
    $SuiteExcludeDirEnvironment = "$($cesSuitePRODSOURCE+'\Exclude sql2')"
    $SuitExcludeFileT1Envxml = $($cesSuitePRODSOURCE+'\readme.txt')
    $SuitExcludeFileClientLnk = $($cesSuitePRODSOURCE+'\finuser - full.bat')
    $options = $SuiteSourceDir, $SuiteDestinationDir, $SuiteExcludeDir, "/XD", $SuiteExcludeDirConfigFiles, $SuiteExcludeDirEnvironment, "/XF", $SuitExcludeFileT1Envxml, $SuitExcludeFileClientLnk, "/MIR","/B","/SEC", "/R:3", "/W:5", "/NFL", "/NDL", "/NP" #,"/L" #/L for log to screen without action /MT is new = Multithreading. See refresh documentation for more info

    & robocopy $options

    First Run: with MT

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

      Started : Wednesday, 24 April 2019 7:50:30 PM
       Source : D:\CES Refresh Scripts\
         Dest : D:\CES Refresh Scripts TargetMT\

        Files : *.*

    Exc Files : D:\CES Refresh Scripts\readme.txt
                D:\CES Refresh Scripts\finuser - full.bat

     Exc Dirs : D:\CES Refresh Scripts\Exclude sql
                D:\CES Refresh Scripts\Exclude sql2

      Options : *.* /NDL /NFL /S /E /DCOPY:DA /COPY:DATS /PURGE /MIR /B /NP /MT:32 /R:3 /W:5

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


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

                   Total    Copied   Skipped  Mismatch    FAILED    Extras
        Dirs :         4         2         2         0         0         0
       Files :        34        32         2         0         0         0
       Bytes :    28.5 k    24.7 k     3.8 k         0         0         0
       Times :   0:00:00   0:00:00                       0:00:00   0:00:00


       Speed :             2815777 Bytes/sec.
       Speed :             161.120 MegaBytes/min.
       Ended : Wednesday, 24 April 2019 7:50:30 PM

    First Run: without MT
    -------------------------------------------------------------------------------
       ROBOCOPY     ::     Robust File Copy for Windows
    -------------------------------------------------------------------------------

      Started : Wednesday, 24 April 2019 7:50:30 PM
       Source : D:\CES Refresh Scripts\
         Dest : D:\CES Refresh Scripts TargetNoMT\

        Files : *.*

    Exc Files : D:\CES Refresh Scripts\readme.txt
                D:\CES Refresh Scripts\finuser - full.bat

     Exc Dirs : D:\CES Refresh Scripts\Exclude sql
                D:\CES Refresh Scripts\Exclude sql2

      Options : *.* /NDL /NFL /S /E /DCOPY:DA /COPY:DATS /PURGE /MIR /B /NP /R:3 /W:5

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


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

                   Total    Copied   Skipped  Mismatch    FAILED    Extras
        Dirs :         4         2         2         0         0         0
       Files :        34        32         2         0         0         0
       Bytes :    28.5 k    24.7 k     3.8 k         0         0         0
       Times :   0:00:00   0:00:00                       0:00:00   0:00:00


       Speed :             1013680 Bytes/sec.
       Speed :              58.003 MegaBytes/min.
       Ended : Wednesday, 24 April 2019 7:50:30 PM

    Second Run: with MT


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

      Started : Wednesday, 24 April 2019 7:50:30 PM
       Source : D:\CES Refresh Scripts\
         Dest : D:\CES Refresh Scripts TargetMT\

        Files : *.*

    Exc Files : D:\CES Refresh Scripts\readme.txt
                D:\CES Refresh Scripts\finuser - full.bat

     Exc Dirs : D:\CES Refresh Scripts\Exclude sql
                D:\CES Refresh Scripts\Exclude sql2

      Options : *.* /NDL /NFL /S /E /DCOPY:DA /COPY:DATS /PURGE /MIR /B /NP /MT:32 /R:3 /W:5

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


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

                   Total    Copied   Skipped  Mismatch    FAILED    Extras
        Dirs :         4         2         2         0         0         0
       Files :        34        32         2         0         0         0
       Bytes :    28.5 k    24.7 k     3.8 k         0         0         0
       Times :   0:00:00   0:00:00                       0:00:00   0:00:00


       Speed :             2815777 Bytes/sec.
       Speed :             161.120 MegaBytes/min.
       Ended : Wednesday, 24 April 2019 7:50:30 PM

    Second Run: without MT

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

      Started : Wednesday, 24 April 2019 7:52:42 PM
       Source : D:\CES Refresh Scripts\
         Dest : D:\CES Refresh Scripts TargetMT\

        Files : *.*

    Exc Files : D:\CES Refresh Scripts\readme.txt
                D:\CES Refresh Scripts\finuser - full.bat

     Exc Dirs : D:\CES Refresh Scripts\Exclude sql
                D:\CES Refresh Scripts\Exclude sql2

      Options : *.* /NDL /NFL /S /E /DCOPY:DA /COPY:DATS /PURGE /MIR /B /NP /MT:32 /R:3 /W:5

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


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

                   Total    Copied   Skipped  Mismatch    FAILED    Extras
        Dirs :         4         2         4         0         0         0
       Files :        34                34         0         0         0
       Bytes :    28.5 k         0    28.5 k         0         0         0
       Times :   0:00:00   0:00:00                       0:00:00   0:00:00
       Ended : Wednesday, 24 April 2019 7:52:42 PM


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

      Started : Wednesday, 24 April 2019 7:52:42 PM
       Source : D:\CES Refresh Scripts\
         Dest : D:\CES Refresh Scripts TargetNoMT\

        Files : *.*

    Exc Files : D:\CES Refresh Scripts\readme.txt
                D:\CES Refresh Scripts\finuser - full.bat

     Exc Dirs : D:\CES Refresh Scripts\Exclude sql
                D:\CES Refresh Scripts\Exclude sql2

      Options : *.* /NDL /NFL /S /E /DCOPY:DA /COPY:DATS /PURGE /MIR /B /NP /R:3 /W:5

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


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

                   Total    Copied   Skipped  Mismatch    FAILED    Extras
        Dirs :         4         0         4         0         0         0
       Files :        34         0        34         0         0         0
       Bytes :    28.5 k         0    28.5 k         0         0         0
       Times :   0:00:00   0:00:00                       0:00:00   0:00:00
       Ended : Wednesday, 24 April 2019 7:52:42 PM


    • Edited by RhysB90 Wednesday, April 24, 2019 9:59 AM
    Wednesday, April 24, 2019 9:57 AM