Guide Programming + Scripting Batch Files Robocopy Updated July 26 2025
This page explains options quite well:
https://superuser.com/questions/814102/robocopy-command-to-do-an-incremental-backup

Copy folder modified date
/DCOPY:T

Copy in Backup mode, which copies all files, and bypasses many permission issues
/b


Backup a users Profile (excluding AppData):

Copy to Clipboardrobocopy /mir /xj /r:0 /w:0 /DCOPY:T "C:\Users\username" "D:\Backup\Username" /xd "C:\Users\username\appdata"


Backup a users Profile (excluding AppData) Multithreaded:
Copy to Clipboardrobocopy /mir /xj /r:0 /w:0 /DCOPY:T /mt "C:\Users\username" "D:\Backup\Username" /xd "C:\Users\username\appdata"


Backup a users Profile (including AppData):
Copy to Clipboardrobocopy /mir /xj /r:0 /w:0 /DCOPY:T "C:\Users\username" "D:\Backup\Username"


Backup a users Profile (including AppData) Multithreaded:
Copy to Clipboardrobocopy /mir /xj /r:0 /w:0 /DCOPY:T /mt "C:\Users\username" "D:\Backup\Username"



Backup Onedrive quickly
robocopy /mir /xj /w:0 /r:0 "C:\Users\user\OneDrive" "Z:\OnedriveBackup\Onedrive" /copyall /LOG:C:\Users\user\onedrive.txt /mt


Move files from one folder to another. This basically just moves all files from source to destination, but will not delete any files in destination. You can use this to periodically move all files in Source, and they will collect in Destination.
robocopy /S /E /DCOPY:DA /COPY:DAT /MOVE /XJ /R:0 /MT "C:\Source" "C:\Destination"




©2024 - Some portions of this website are Copyrighted.
Your IP: 216.73.216.210     Referring URL:
Browser: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Terms and Conditions, Privacy Policy, and Security Policy