Copy Large Folders Reliably with Robocopy Resume, Retries, and Logs in Windows 10/11

Copy Large Folders Reliably with Robocopy Resume, Retries, and Logs in Windows 10/11​

Difficulty: Intermediate | Time Required: 15 minutes
Copying a large folder with File Explorer can be frustrating. A network hiccup, locked file, long path, or sleep interruption may stop the transfer, and it is not always obvious what copied successfully. Robocopy, short for “Robust File Copy,” is built into Windows and is much better suited for large folder transfers, backups, NAS copies, external drives, and server shares.
In this tutorial, you’ll use Robocopy to copy a large folder with:
  • Resume support for interrupted transfers
  • Retries for temporary failures
  • Logs you can review afterward
  • Optional performance improvements for large file sets
Robocopy is available in Windows 10 and Windows 11 from Command Prompt, PowerShell, and Windows Terminal.

Prerequisites​

Before you begin, make sure you have:
  1. A Windows 10 or Windows 11 PC.
  2. The full path of the folder you want to copy.
  3. The full path of the destination folder.
  4. Enough free space on the destination drive.
  5. Permission to read from the source and write to the destination.
Example paths used in this guide:
Code:
Source:      C:\Users\YourName\Pictures
Destination: D:\Backups\Pictures
Log folder:  C:\Logs
Tip: If your path contains spaces, always wrap it in quotation marks.
Example:
"C:\Users\YourName\My Pictures"

Step 1: Open Command Prompt or Windows Terminal​

  1. Right-click Start.
  2. Select Terminal, Windows Terminal, or Command Prompt.
  3. If you are copying protected folders or need access to another user profile, choose Run as administrator.
Note: Administrator rights are not always required. For normal personal folders, a standard terminal window is usually fine.

Step 2: Create a Folder for Logs​

Robocopy logs are extremely useful when copying large folders. They let you confirm what copied, what failed, and whether Robocopy skipped files that were already present.
Run:
mkdir C:\Logs
If the folder already exists, Windows may simply report that it already exists. That is fine.

Step 3: Run a Safe Test First​

Before copying anything, do a test run with /L. This lists what Robocopy would do without actually copying, deleting, or changing files.
robocopy "C:\Users\YourName\Pictures" "D:\Backups\Pictures" /E /L /TEE /LOG:C:\Logs\Pictures-Test.log
What these options mean:
  • /E copies all subfolders, including empty ones.
  • /L lists only; it does not copy anything.
  • /TEE shows output on screen and writes it to the log.
  • /LOG: writes the output to a log file.
  1. Open C:\Logs\Pictures-Test.log.
  2. Review the source and destination paths.
  3. Make sure the destination is correct.
Warning: Always verify your destination path before running the real copy, especially if you later use mirror options such as /MIR.

Step 4: Run the Reliable Copy Command​

Once the test looks correct, run the actual copy:
robocopy "C:\Users\YourName\Pictures" "D:\Backups\Pictures" /E /Z /R:5 /W:10 /TEE /LOG:C:\Logs\Pictures-Copy.log
This is a good general-purpose command for large folders.
Here is what each option does:
  • /E copies all subdirectories, including empty ones.
  • /Z uses restartable mode, allowing interrupted file copies to resume.
  • /R:5 retries failed copies up to 5 times.
  • /W:10 waits 10 seconds between retries.
  • /TEE displays progress in the terminal and writes to the log.
  • /LOG: creates a new log file, replacing any existing file with the same name.
By default, Robocopy’s retry settings are very high. Setting /R:5 /W:10 prevents a copy job from appearing to hang for hours on one locked or unavailable file.

Step 5: Resume an Interrupted Copy​

If the copy is interrupted by a reboot, network outage, unplugged drive, or closed terminal window, simply run the same command again:
robocopy "C:\Users\YourName\Pictures" "D:\Backups\Pictures" /E /Z /R:5 /W:10 /TEE /LOG:C:\Logs\Pictures-Copy-Resume.log
Robocopy will compare the source and destination and skip files that are already up to date. With /Z, interrupted file transfers can resume instead of starting the entire file from scratch.
Tip: For very large individual files, such as videos, virtual machines, archives, or disk images, restartable mode can save a lot of time after interruptions.

Step 6: Use Append Logging for Multiple Runs​

If you want every run recorded in the same log file, use /LOG+: instead of /LOG:.
robocopy "C:\Users\YourName\Pictures" "D:\Backups\Pictures" /E /Z /R:5 /W:10 /TEE /LOG+:C:\Logs\Pictures-Copy.log
The plus sign means Robocopy appends new output to the existing log instead of overwriting it.

Step 7: Optional Performance Boost with Multithreading​

For folders containing many files, Robocopy can use multiple threads:
robocopy "C:\Users\YourName\Pictures" "D:\Backups\Pictures" /E /Z /R:5 /W:10 /MT:16 /TEE /LOG:C:\Logs\Pictures-Copy.log
/MT:16 uses 16 threads. Robocopy supports values from 1 to 128, with 8 as the default when /MT is used without a number.
Good starting values:
  • /MT:8 for slower drives or network shares
  • /MT:16 for typical SSD-to-SSD or NAS copies
  • /MT:32 for faster storage and reliable networks
Note: More threads are not always better. If your system becomes sluggish or the destination drive is overwhelmed, lower the number.

Step 8: Optional Large File Mode​

For very large files, you can add /J for unbuffered I/O:
robocopy "C:\Users\YourName\Videos" "D:\Backups\Videos" /E /Z /J /R:5 /W:10 /TEE /LOG:C:\Logs\Videos-Copy.log
This can be helpful when copying large media files, archives, virtual hard disks, or backup images.

Step 9: Be Careful with Mirror Mode​

Robocopy has a powerful mirror option:
robocopy "C:\Source" "D:\Destination" /MIR /Z /R:5 /W:10 /TEE /LOG:C:\Logs\Mirror.log
/MIR makes the destination match the source. It copies new and changed files, but it also deletes files from the destination if they no longer exist in the source.
Warning: Do not use /MIR unless you are absolutely sure the destination should become an exact copy of the source. For most first-time backup copies, use /E instead.
A safer approach is to test mirror mode first:
robocopy "C:\Source" "D:\Destination" /MIR /L /TEE /LOG:C:\Logs\Mirror-Test.log
Review the test log before removing /L.

Tips and Troubleshooting​

Check Robocopy’s Exit Code​

After Robocopy finishes, it displays a summary. In general, exit codes below 8 usually mean the copy completed without a serious failure. An exit code of 8 or higher means at least one file failed to copy.

Locked Files​

Some files may be locked because an app is using them. Close apps such as Outlook, OneDrive, photo managers, game launchers, or virtual machine software, then run Robocopy again.

Network Shares​

For network copies, use UNC paths when possible:
robocopy "C:\Data" "\\NAS01\Backups\Data" /E /Z /R:5 /W:10 /TEE /LOG:C:\Logs\NAS-Copy.log
If the network share is temporarily unavailable, the retry settings help Robocopy recover.

Long Paths​

Windows 10 and Windows 11 handle many long-path scenarios better than older versions of Windows, but some apps and file systems may still have limits. If you run into path issues, try copying from a shorter source path or to a shorter destination path.

Avoid Copying from a Drive Root When Possible​

Instead of copying directly from C:\, copy specific folders such as:
C:\Users\YourName\Documents
This avoids accidentally copying system folders, hidden metadata, or folders you did not intend to include.

Conclusion​

Robocopy is one of the best built-in tools for reliable large-folder copying in Windows 10 and Windows 11. With restartable mode, sensible retry settings, and detailed logs, you can copy large folders with more confidence than using File Explorer alone. Once you are comfortable with the basic command, options like /MT, /J, /LOG+:, and test runs with /L make Robocopy even more useful for backups, migrations, and network transfers.
Key Takeaways:
  • Use /E to copy all subfolders, including empty folders.
  • Use /Z so interrupted copies can resume more reliably.
  • Use /R and /W to control retries and avoid endless waits.
  • Use /LOG or /LOG+ so you have a record of the copy.
  • Use /L first when testing risky commands.
  • Be very careful with /MIR because it can delete destination files.

This tutorial was generated to help WindowsForum.com users get the most out of their Windows experience.
 

Back
Top