Robocopy Web User Interface

?Specify the file or files to be copied. Wildcard characters (* or ?) are supported. If you don't specify this parameter, *.* is used as the default value.

Important! Seperate files with space. If there is space in the file name, please wrap them with Quotation Marks.
For example: file_name.txt "file name.tx?" fn*.txt *.doc

robocopy

Examples

Copy all files from C:\Folder1 to D:\Folder 2:
robocopy C:\Folder1 "D:\Folder 2"

Copy all Word and Excel files from C:\Folder1 to D:\Folder 2:
robocopy C:\Folder1 "D:\Folder 2" *.do* *.xl*

Move all files from C:\Folder1 to D:\Folder 2 including subfolders:
robocopy C:\Folder1 "D:\Folder 2" /s /mov

Move all files and folders from C:\Folder1 to D:\Folder 2, including subfolders (also empty ones) and remove s(ystem) and h(idden) attributes:
robocopy C:\Folder1 "D:\Folder 2" /e /a-:sh /move

Sync (mirror) all files from C:\Folder1 to D:\Folder 2 including subfolders:
robocopy C:\Folder1 "D:\Folder 2" /mir

Sync (mirror) all files from D:\ to E:\ including subfolders, exluding specified folders and files:
robocopy D: E: /mir /xd "$RECYCLE.BIN" "System Volume Information" /xf "pagefile.sys" "desktop.ini" "Thumbs.db" "*.tmp" "~*.*"

List all files to sync (mirror) from C:\Folder1 to D:\Folder 2 including subfolders into D:\rb.log file only (overwrite log file):
robocopy C:\Folder1 "D:\Folder 2" /l /mir /log:D:\rb.log

Sync (mirror) all files modified in the last 7 days from C:\Folder1 to D:\Folder 2 including subfolders into D:\rb.log file (append unicode log file and screen):
robocopy C:\Folder1 "D:\Folder 2" /l /mir /tee /maxage:7 /unilog+:D:\rb.log

Sync (mirror) all files modified in since January 20th 2023 from C:\Folder1 to D:\Folder 2 including subfolders into D:\rb.log file (append unicode log file and screen):
robocopy C:\Folder1 "D:\Folder 2" /l /mir /tee /maxage:20230120 /unilog+:D:\rb.log

Options
?Only copy the top n levels of the source directory tree.
?recommended for large files.
?Valid flags for this option are:
  • D - Data
  • A - Attributes
  • T - Timestamps
  • X - Skip alt data streams
  • S - NTFS access control list (ACL)
  • O - Owner info
  • U - aUditing info.
(default: DAT)
?Valid flags for this option are:
  • D - Data
  • A - Attributes
  • T - Timestamps
  • E - Extended attribute
  • X - Skip alt data streams
(default: DA)

The /DCOPY:E flag requests that extended attribute copying should be attempted for directories. Robocopy will continue if a directory's EAs could not be copied. This flag is not included in /COPYALL.
?When using the /secfix copy option, specify the type of security information you want to copy, using one of these additional copy options:
  • /copyall
  • /copy:o
  • /copy:s
  • /copy:u
  • /sec
?Using this option with the /e option and a destination directory, allows the destination directory security settings to not be overwritten.

Using /PURGE on the root directory of the volume formerly caused robocopy to apply the requested operation on files inside the System Volume Information directory as well. This is no longer the case as if either is specified, robocopy will skip any files or directories with that name in the top-level source and destination directories of the copy session.
?Using this option with the /e option and a destination directory, overwrites the destination directory security settings.

Using /MIR on the root directory of the volume formerly caused robocopy to apply the requested operation on files inside the System Volume Information directory as well. This is no longer the case as if either is specified, robocopy will skip any files or directories with that name in the top-level source and destination directories of the copy session.
?Valid values for this option are:
  • R - Read only
  • A - Archive
  • S - System
  • H - Hidden
  • C - Compressed
  • N - Not content indexed
  • E - Encrypted
  • T - Temporary
?Valid values for this option are:
  • R - Read only
  • A - Archive
  • S - System
  • H - Hidden
  • C - Compressed
  • N - Not content indexed
  • E - Encrypted
  • T - Temporary
  • O - Offline
/Mon:
?Creates multi-threaded copies with n threads. n must be an integer between 1 and 128. The default value for n is 8. For better performance, redirect your output using /log option.
The /mt parameter can't be used with the /ipg and /efsraw parameters.

The /mt parameter was introduced in Windows Server 2008 R2 and its functionality applies to current versions of Windows Server.
?If /IoMaxSize specified, robocopy will enable copy file throttling to reduce system load. It may be adjusted to optimal values and copy parameters, but the system and robocopy are allowed to adjust it to allowed values as necessary.
?If /IoRate specified, robocopy will enable copy file throttling to reduce system load. It may be adjusted to optimal values and copy parameters, but the system and robocopy are allowed to adjust it to allowed values as necessary.
?If /Threshold is used, it specifies a minimum file size for engaging throttling. Files below that size will not be throttled. Values for all three parameters may be followed by an optional suffix character such as [KMG] (kilo, mega, giga).
?Valid values for this option are:
  • R - Read only
  • A - Archive
  • S - System
  • H - Hidden
  • C - Compressed
  • N - Not content indexed
  • E - Encrypted
  • T - Temporary
  • O - Offline
?Valid values for this option are:
  • R - Read only
  • A - Archive
  • S - System
  • H - Hidden
  • C - Compressed
  • N - Not content indexed
  • E - Encrypted
  • T - Temporary
  • O - Offline
!Important! Seperate files with space. If there is space in the file name, please wrap it with Quotation Marks.
For example: file_name.txt "file name.tx?" *.tmp
!Important! Seperate directories with space. If there is space in the directory name, please wrap it with Quotation Marks.
For example: directory_name "directory name"
?Excluding extra files will not delete files from the destination.
?Excluding lonely files prevents any new files from being added to the destination.
?Modified files classification applies only when both source and destination filesystems support change timestamps, such as NTFS, and the source and destination files have different change times but are otherwise the same. These files are not copied by default. Specify /IM to include them.
?Same files are identical in name, size, times, and all attributes.
?Tweaked files have the same name, size, and times, but different attributes.
?If n is less than 1900, n specifies the number of days. Otherwise, n specifies a date in the format YYYYMMDD.
<
?If n is less than 1900, n specifies the number of days. Otherwise, n specifies a date in the format YYYYMMDD.
?If n is less than 1900, n specifies the number of days. Otherwise, n specifies a date in the format YYYYMMDD.
?If n is less than 1900, n specifies the number of days. Otherwise, n specifies a date in the format YYYYMMDD.
?The default value of n is 1,000,000 (one million retries).
?The default value of n is 30 (wait time 30 seconds).
?Using /LFSM requests robocopy to operate in 'low free space mode'. In this mode, robocopy will pause whenever a file copy would cause the destination volume's free space to go below a 'floor' value. This value can be explicitly specified using /LFSM:n[KMG] flag.

If /LFSM is specified with no explicit floor value, the floor is set to 10% of the destination volume's size. Low free space mode is incompatible with /MT and /EFSRAW.
Writes the status output to the console window, and to the log file.
Specifies that there is no job header.
Specifies that there is no job summary.
Displays the status output as unicode text.
!Important! To run /job:jobname, you must first run the /save:jobname parameter to create the job file.
!Important! This must be ran before running /job:jobname. All copy, retry, and logging options must be specified before this parameter.
Exit (return) codes
Val Description
0 No files were copied. No failure was encountered. No files were mismatched. The files already exist in the destination directory; therefore, the copy operation was skipped.
1 All files were copied successfully.
2 There are some additional files in the destination directory that are not present in the source directory. No files were copied.
3 Some files were copied. Additional files were present. No failure was encountered.
5 Some files were copied. Some files were mismatched. No failure was encountered.
6 Additional files and mismatched files exist. No files were copied and no failures were encountered meaning that the files already exist in the destination directory.
7 Files were copied, a file mismatch was present, and additional files were present.
8 Several files did not copy.

Note:Any value equal to or greater than 8 indicates that there was at least one failure during the copy operation.