Saturday, May 27, 2023

How to copy files fast over network or LAN using cmd robocopy on Windows

Before run robocopy, you must know source and destination network or LAN

open CMD and run

ex copy 

from D:\

to \\YOUR-PC\D\

robocopy D:\ \\YOUR-PC\D\ /E /Z /ZB /XO /R:5 /W:5 /TBD /NP /V /MT:16


/E — Copy Subdirectories, including empty ones.

/Z — Copy files in restart-able mode.

/ZB — Uses restart-able mode. If access is denied, use backup mode.

/XO — Exclude files that are older than those they're being copied over (skip for existing files)

/R:5 — Retry 5 times (you can specify a different number, the default is 1 million).

/W:5 — Wait 5 seconds before retrying (you can specify a different number, the default is 30 seconds).

/TBD — Wait for share names To Be Defined (retry error 67).

/NP — No Progress – don’t display percentage copied.

/V — Produce verbose output, showing skipped files.

/MT:16 — Do multithreaded copies with n threads (default is 8).

/compress — Enables SMB compression to speed up transfers over the network.

No comments:

Post a Comment