Windows

robocopy

DestructiveRobust mirror copy

robocopy <src> <dest> /MIR

Strong for large/resumable copies. /MIR mirrors (sync + delete extras).

Examples

  • robocopy C:\data D:\data /MIR /ZMirror with restart support

Syntax

robocopy <src> <dest> [/MIR] [/Z] [/R:n]

Before you run it

/MIR deletes files at the destination that aren't in source.

Used when you see

Back up / restore
4
On Windows, robust copy/MIR mirrors—careful
See the whole flow →

Related commands

Check it once more before you run it

Some commands cannot be undone if one flag is wrong. An on-device reference works with no connection. Free to install, no ads.

Get it free on the App Store