# Backups That Work: \`robocopy\`

robocopy, the copying program that comes with Windows, copies a folder and after that only what changed, mirrors it with /MIR (which deletes from the backup too), rehearses with /L, and ends with an exit code where anything below 8 means success.

![Cheat sheet for the lesson Backups That Work: \`robocopy\`: robocopy, the copying program that comes with Windows, copies a folder and after that only what changed, mirrors it with /MIR (which deletes from the backup too), rehearses with /L, and ends with an exit code where anything below 8 means…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/d231f0115070478f89c2d69707cbac4b.webp)

- Category: PowerShell
- Level: Journeyman
- Tags: backup, dry-run, exit-code, mirror-backup, operating-system, powershell, robocopy
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-robocopy-cheat-sheet
