# Robocopy

***Robocopy*** allows copying, mirroring, or moving of files and directories.

Robocopy makes use of the Windows Robocopy command. [Learn more](https://technet.microsoft.com/en-us/library/cc733145.aspx)

***

## Properties

***

### Copy

#### Mode

The operation to perform on the source directory.

Options:

* Copy
* Mirror
* Move files
* Move files and directories

#### Source directory

Indicates the full path of the directory on which to perform the action.

#### Target directory

Indicates the full path to the destination directory.

#### Copy subdirectories

Copy subdirectories, excluding empty ones.

#### Include empty subdirectories

Copy subdirectories, including empty ones.

#### Restart mode

Copy files in restart mode.

#### Backup mode

Copy files in backup mode.

#### Number of retries

Indicates the number of retries on failed copies.

#### Time between retries

Indicates the wait time between retries, in seconds.

***

### Filter

#### File pattern

File(s) to copy. If no value is specified, all files (*.*) will be copied.

#### Exclude files

Excludes files that match the specified names or paths. Note that filename can include wildcard characters (\* and ?).

#### Exclude directories

Excludes directories that match the specified names and paths.

#### Excludes changed files

Excludes changed files.

#### Excludes newer files

Excludes newer files.

#### Excludes older files

Excludes older files.

#### Excludes extra files and directories

Excludes extra files and directories.

#### Excludes lonely files and directories

Excludes lonely files and directories.

#### Includes same files

Includes the same files.

#### Includes tweaked files

Includes tweaked files.

#### Max file size

Indicates the maximum file size (to exclude files bigger than N bytes).

#### Min file size

Indicates the minimum file size (to exclude files smaller than N bytes).

#### Max age

Indicates the maximum file age (to exclude files older than N days or date).

#### Min age

Indicates the minimum file age (excludes files newer than N days or date).

#### Max last access date

Indicates the maximum last access date (excludes files unused since N).

#### Min last access date

Indicates the minimum last access date (excludes files used since N). If N is less than 1900, N specifies the number of days. Otherwise, N specifies a date in the format YYYYMMDD.

***

### Logging

#### Log file

Writes the status output to the log file (appends the output to the existing log file).

#### Overwrite file

Writes the status output to the log file (overwrites the existing log file).

#### List files only

Indicates that files are to be listed only (and not copied, deleted, or time stamped).

#### Log all extra files

Reports all extra files, not just those that are selected.

#### Verbose

Produces verbose output, and shows all skipped files.

#### Include source file timestamps

Includes source file time stamps in the output.

#### Include full path

Includes the full path names of the files in the output.

#### Log size as bytes

Prints sizes, as bytes.

#### Exclude file size

Indicates that file sizes are not to be logged.

#### Exclude file class

Indicates that file classes are not to be logged.

#### Exclude file names

Indicates that file names are not to be logged.

#### Exclude directory names

Indicates that directory names are not to be logged.

#### Exclude progress

Indicates that the progress of the copying operation (the number of files or directories copied so far) will not be displayed.

#### Include ETA

Shows the estimated time of arrival (ETA) of the copied files.

***

## Links

[Wikipedia: Robocopy](https://en.wikipedia.org/wiki/Robocopy)\
[TechNet: Robocopy](https://technet.microsoft.com/en-us/library/cc733145.aspx)
