Windows

Robocopy Command Generator

Generate Robocopy commands from a visual configuration: subdirectories, permissions, retries, multithreading and more.

This tool runs entirely in your browser. Anything you type here is never sent to a server.

Source and destination
Subdirectories
Attributes to preserve
Robustness
Performance
Logging and exclusions
Separate them with commas or line breaks.
Separate them with commas or line breaks.
Generated command
robocopy "C:\Origen" "D:\Destino"

What each Robocopy option does

Robocopy (Robust File Copy) is the file copy and sync tool built into Windows, designed for backup and migration tasks with automatic retries, permission preservation and multithreaded copying. This page generates the exact command for your chosen configuration; the command is never run from here — it is only copied so you can launch it yourself in a console with the right permissions.

Key options

  • /MIR Mirrors the destination against the source, including deleting files at the destination that no longer exist at the source. Use with care.
  • /SEC Also copies NTFS access control lists (ACLs).
  • /Z Lets large interrupted file copies resume, at some cost to performance.
  • /MT Copies several files in parallel, greatly speeding up copies with many small files.

Frequently asked questions

Why can't I enable /E and /MIR at the same time?

/MIR already includes the behavior of /E (copy subdirectories, including empty ones) and additionally syncs deletions; combining them would be redundant, so the generator only uses /MIR when it is enabled.

Is it safe to run the generated command directly?

Always double-check the source, the destination and, especially, /MIR before running the command: with /MIR, any file present at the destination but not at the source gets deleted.