Copy Large Folders Reliably with Robocopy Resume, Retries, and Logs in Windows 10/11
Difficulty: Intermediate | Time Required: 15 minutesCopying 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
Prerequisites
Before you begin, make sure you have:- A Windows 10 or Windows 11 PC.
- The full path of the folder you want to copy.
- The full path of the destination folder.
- Enough free space on the destination drive.
- Permission to read from the source and write to the destination.
Code:
Source: C:\Users\YourName\Pictures
Destination: D:\Backups\Pictures
Log folder: C:\Logs
Example:Tip: If your path contains spaces, always wrap it in quotation marks.
"C:\Users\YourName\My Pictures"Step 1: Open Command Prompt or Windows Terminal
- Right-click Start.
- Select Terminal, Windows Terminal, or Command Prompt.
- 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:\LogsIf 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.logWhat these options mean:
/Ecopies all subfolders, including empty ones./Llists only; it does not copy anything./TEEshows output on screen and writes it to the log./LOG:writes the output to a log file.
- Open
C:\Logs\Pictures-Test.log. - Review the source and destination paths.
- 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.logThis is a good general-purpose command for large folders.
Here is what each option does:
/Ecopies all subdirectories, including empty ones./Zuses restartable mode, allowing interrupted file copies to resume./R:5retries failed copies up to 5 times./W:10waits 10 seconds between retries./TEEdisplays progress in the terminal and writes to the log./LOG:creates a new log file, replacing any existing file with the same name.
/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.logRobocopy 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.logThe 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:8for slower drives or network shares/MT:16for typical SSD-to-SSD or NAS copies/MT:32for 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.logThis 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.A safer approach is to test mirror mode first:Warning: Do not use/MIRunless you are absolutely sure the destination should become an exact copy of the source. For most first-time backup copies, use/Einstead.
robocopy "C:\Source" "D:\Destination" /MIR /L /TEE /LOG:C:\Logs\Mirror-Test.logReview 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.logIf 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 fromC:\, copy specific folders such as:C:\Users\YourName\DocumentsThis 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
/Eto copy all subfolders, including empty folders. - Use
/Zso interrupted copies can resume more reliably. - Use
/Rand/Wto control retries and avoid endless waits. - Use
/LOGor/LOG+so you have a record of the copy. - Use
/Lfirst when testing risky commands. - Be very careful with
/MIRbecause it can delete destination files.
This tutorial was generated to help WindowsForum.com users get the most out of their Windows experience.