copy /w slow relative to robocopy /mir

May 30, 2008
14
0
I keep offline copies of my working directories on external USB 3.0 drives. Over the years I have developed batch files to update these copies using both RoboCopy and TCC's copy command. I have noticed that the built in copy command (copy /w ...) is about 10 times slower than robocopy (robocopy /mir ...). I have included below timed sample using the largest working directry which consists of about 154K files (40GB).

Code:
REM #1: Show mirror changes with robocopy
timer /q robocopy /l /njh /njs /ndl /xj /copy:dat /fft /r:1 /w:1 /mir c:\pclp d:\pclp
Timer 1 off:  9:23:00  Elapsed: 0:00:10.357

REM #2: Show one-way sync changes with copy
timer /q copy /n /h /z /l /uf /s /ne /w c:\pclp d:\pclp
     0 files would be copied
Timer 1 off:  9:24:48  Elapsed: 0:01:48.542
REM About 10 times longer than robocopy (#1)

REM #3: Show copy changes with copy
timer /q copy /n /h /z /l /uf /s /ne c:\pclp d:\pclp
     0 files would be copied
Timer 1 off:  9:25:28  Elapsed: 0:00:39.675
REM About 2.5 times faster than one-way sync (#2)

REM #4: Make mirror changes with robocopy
timer /q robocopy /njh /njs /ndl /xj /copy:dat /fft /r:1 /w:1 /mir c:\pclp d:\pclp
Timer 1 off:  9:25:38  Elapsed: 0:00:09.872
REM Unchanged relative to showing changes (#1)

REM #5: Make one-way sync changes with copy
timer /q copy /h /z /l /uf /s /ne /w c:\pclp d:\pclp
     0 files copied
Timer 1 off:  9:42:27  Elapsed: 0:16:49.340
REM About 9 times slower relative to showing changes (#2)
REM About 100 times slower than robocopy (#4)

REM #6: Make copy changes with copy
timer /q copy /h /z /l /uf /s /ne c:\pclp d:\pclp
     0 files copied
Timer 1 off:  9:43:08  Elapsed: 0:00:40.874
REM Unchanged relative to showing changes (#3)
 
Last edited:
Similar threads
Thread starter Title Forum Replies Date
K Copy Ftp on Server 2008 painfully slow Support 2
C Copy (sys) error Support 3
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
vefatica Copy/Paste anomaly Support 4
D Documentation Typo in COPY help Support 0
samintz COPY fails to copy from \\wsl$ Support 20
D Differences between TCC and CMD with COPY /b Support 4
fpefpe copy /u and timestamps Support 4
M Strange error messages from TCC in FTP copy Support 7
G TCMD crash when copy Support 3
Alpengreis How to? Copy DIRs with attributes ... Support 4
E Text copy bug Support 1
Alpengreis [TCMD v25.00.24] Problem with copy and paste and the # char via mouse in TCC Support 6
fpefpe copy/cat Support 7
Jay Sage Problem with Context Menu Copy+Paste+Run Key Assignment Support 7
K "copy /z /w" command not deleting read-only files in destination Support 10
K copy changing destination current directory Support 1
D Keystroke to copy previous argument Support 3
A How to? Copy+Paste in TCMD tabs with Ctrl-Shift-Ins? Support 5
RChrismon How to? Copy TCMD.INI to New Version Support 7
R How to? Append files in multiple subfolders using copy? Support 8
Dick Johnson COPY /u (?) Support 9
fpefpe Documentation copy /u Support 7
R How to? copy /q ABC.txt + DEF.txt is appending hex 1A Support 8
D copy /g only shows transfer rate Support 1
J Error "Contents lost before copy" Support 3
B Can copy command concatenate multiple mp3 files Support 2
rps Documentation "Copy+Paste+run" question Support 2
kb6ojs Make /G parameter persistent in COPY/MOVE command? Support 4
fpefpe How to? copy / exclude Support 2
fpefpe robocopy -- copy /w Support 8
C copy /w /p prompts for deletion, but ... Support 3
D Fixed Copy Support 1
fpefpe Documentation copy/move using /c or /u Support 2
samintz WAD Copy/append adds a character Support 3
P Simple RegEx copy Support 9
fromano Fixed COPY ... TO ... crashing Support 3
Alpengreis How to? Copy & Paste without linebreak within TCMD Support 13
D COPY returns ERRORLEVEL 2 Support 5
mdwyer TCC 13 COPY: specified network name is no longer available. Support 5
CWBillow Copy a tree Support 17
J junction copy/move handling Support 6
vefatica Fixed COPY /S ftp://... Support 1
C WAD copy /u ftp local with Timeout? Support 5
D How to? Unregister a copy of Take command Support 1
vefatica FTP copy interrupted Support 2
C How to? COPY ftp folder query Support 7
R How to? TCC 16.03: copy a file to the clipboard? Support 10
jadaml Documentation Is COPY realy doesn't work for any HTTP and FTP? Support 3
T TCC control-C copy operation Support 3

Similar threads