12

I'm working with a Windows-7 computer, who needs to copy a lot of small files from the network (NAS). I used to do this using xcopy command, but due to a file lock problem, I've decided to start working with robocopy, using following parameters:

robocopy \\nas\<subdir>\ <destination>\ /E /R:3 /V /FP

I have the impression that the performance has decreased severely, but as I don't have any logs of the previous situation (using xcopy), I'm not really sure.

Can I add any flags which would increase the performance of the robocopy command?

3
  • A must is /NP and /MT. I use /MT:64. Do not use /NOOFFLOAD or /TEE. When using /LOG, you must add /NP. Commented Jun 30, 2022 at 16:36
  • If there is a physical drive involved, try /MT:1 Commented Apr 29, 2025 at 13:28
  • @balintn: yes, there is. Commented Apr 29, 2025 at 17:22

1 Answer 1

16

Can I add any options to increase the performance of the robocopy command?

The following options will change the performance of robocopy:

  • /J : Copy using unbuffered I/O (recommended for large files).

  • /NOOFFLOAD : Copy files without using the Windows Copy Offload mechanism.

  • /R:n : Number of Retries on failed copies - default is 1 million.

  • /W:n : Wait time between retries - default is 30 seconds.

  • /REG : Save /R:n and /W:n in the Registry as default settings.

  • /MT[:n] : Multithreaded copying, n = no. of threads to use (1-128)

    default = 8 threads, not compatible with /IPG and /EFSRAW.

    The use of /LOG is recommended for better performance.

Source - robocopy


Further Reading

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.