> For the complete documentation index, see [llms.txt](https://wiki.bryanpcoleman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.bryanpcoleman.com/microsoft-windows/robocopy.md).

# Robocopy

Command format and option definitions

```
robocopy <src> <dest> /mir /r:1 /w:1 /sec /b
```

## Options

| Option           | Description                                                   |
| ---------------- | ------------------------------------------------------------- |
| /mir             | Mirrors a directory tree                                      |
| /r:\<N>          | Specifies number of retries on failed copies                  |
| /w:\<N>          | Specifies the wait time between retires in seconds            |
| /sec             | Copies files with security                                    |
| /b               | Copies files in Backup mode                                   |
| /xd \<Directory> | Excludes directories that match the specified names and paths |
