You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> If any data is copied from the _root_ of a device, the destination directory will adopt the "hidden" attribute during the copy process.
28
+
> If any data is copied from the _root_ of a device, the destination directory adopts the "hidden" and "system" attributes during the copy process.
29
29
30
30
### Parameters
31
31
@@ -113,15 +113,15 @@ These throttling options are used to specify the maximum I/O bandwidth that Robo
113
113
| /xc | Excludes existing files with the same timestamp, but different file sizes. |
114
114
| /xn | Source directory files newer than the destination are excluded from the copy. |
115
115
| /xo | Source directory files older than the destination are excluded from the copy. |
116
-
| /xx | Excludes extra files and directories present in the destination but not the source. Excluding extra files won't delete files from the destination. |
116
+
| /xx | Excludes extra files and directories present in the destination but not the source. Excluding extra files doesn't delete files from the destination. |
117
117
| /xl | Excludes "lonely" files and directories present in the source but not the destination. Excluding lonely files prevents any new files from being added to the destination. |
118
118
| /im | Include modified files (differing change times). |
119
119
| /is | Includes the same files. Same files are identical in name, size, times, and all attributes. |
120
120
| /it | Includes "tweaked" files. Tweaked files have the same name, size, and times, but different attributes. |
121
121
| /max:`<n>`| Specifies the maximum file size (to exclude files bigger than *n* bytes). |
122
122
| /min:`<n>`| Specifies the minimum file size (to exclude files smaller than *n* bytes). |
123
-
| /maxage:`<n>`| Specifies the maximum file age (to exclude files older than *n* days or date). |
124
-
| /minage:`<n>`| Specifies the minimum file age (exclude files newer than *n* days or date). |
123
+
| /maxage:`<n>`| Specifies the maximum file age to exclude files older than *n* days or a date based on when the files were last _modified_. |
124
+
| /minage:`<n>`| Specifies the minimum file age to exclude files newer than *n* days or a date based on when the files were last _modified_. |
125
125
| /maxlad:`<n>`| Specifies the maximum last access date (excludes files unused since *n*). |
126
126
| /minlad:`<n>`| Specifies 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. |
127
127
| /xj | Excludes junction points, which are normally included by default. |
@@ -155,7 +155,7 @@ These throttling options are used to specify the maximum I/O bandwidth that Robo
155
155
| /nc | Specifies that file classes aren't to be logged. |
156
156
| /nfl | Specifies that file names aren't to be logged. |
157
157
| /ndl | Specifies that directory names aren't to be logged. |
158
-
| /np | Specifies that the progress of the copying operation (the number of files or directories copied so far) won't be displayed. |
158
+
| /np | Specifies to not display the progress of the copying operation (the number of files or directories copied so far). |
159
159
| /eta | Shows the estimated time of arrival (ETA) of the copied files. |
160
160
| /log:`<logfile>`| Writes the status output to the log file (overwrites the existing log file). |
161
161
| /log+:`<logfile>`| Writes the status output to the log file (appends the output to the existing log file). |
@@ -179,17 +179,17 @@ These throttling options are used to specify the maximum I/O bandwidth that Robo
179
179
180
180
#### Remarks
181
181
182
-
- Using **/PURGE** or **/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.
182
+
- Using **/PURGE** or **/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 skips any files or directories with that name in the top-level source and destination directories of the copy session.
183
183
184
184
- 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 aren't copied by default. Specify **/IM** to include them.
185
185
186
-
- The **/DCOPY:E** flag requests that extended attribute copying should be attempted for directories. Robocopy will continue if a directory's EAs couldn't be copied. This flag isn't included in **/COPYALL**.
186
+
- The **/DCOPY:E** flag requests that extended attribute copying should be attempted for directories. Robocopy continues the copy operation even if a directory's EAs couldn't be copied. This flag isn't included in **/COPYALL**.
187
187
188
-
- If either **/IoMaxSize** or **/IoRate** are specified, robocopy will enable copy file throttling to reduce system load. Both can be adjusted to optimal values and copy parameters, but the system and robocopy are allowed to adjust them to allowed values as necessary.
188
+
- If either **/IoMaxSize** or **/IoRate** are specified, robocopy enables copy file throttling to reduce system load. Both can be adjusted to optimal values and copy parameters, but the system and robocopy are allowed to adjust them to allowed values as necessary.
189
189
190
-
- If **/Threshold** is used, it specifies a minimum file size for engaging throttling. Files below that size won't be throttled. Values for all three parameters can be followed by an optional suffix character such as [KMG] (kilobytes, megabytes, gigabytes).
190
+
- If **/Threshold** is used, it specifies a minimum file size for engaging throttling. Files below that size aren't throttled. Values for all three parameters can be followed by an optional suffix character such as [KMG] (kilobytes, megabytes, gigabytes).
191
191
192
-
- 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.
192
+
- Using **/LFSM** requests robocopy to operate in 'low free space mode'. In this mode, robocopy pauses 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.
193
193
194
194
- 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**.
195
195
@@ -213,42 +213,48 @@ These throttling options are used to specify the maximum I/O bandwidth that Robo
213
213
214
214
It's highly recommended when running the `robocopy` command to create a log file that can be viewed once the process completes verifying its integrity. In the following examples, each one uses the `/LOG:` parameter. To append any log information to the same log file, use the `/LOG+:` parameter instead.
215
215
216
-
To copy all files and subdirectories, including empty directories, from the "Records" folder to the "Backup" folder on drive "D", type the following:
216
+
To copy all files and subdirectories, including empty directories, from the "Records" folder to the "Backup" folder on drive "D", type:
To mirror the contents of the "Records" folder to the "Backup" folder on drive "D", delete any files in the destination that don't exist in the source with 2 retries and waiting 5 seconds between each retry, type the following:
222
+
To mirror the contents of the "Records" folder to the "Backup" folder on drive "D", delete any files in the destination that don't exist in the source with 2 retries and waiting 5 seconds between each retry, type:
To copy all files and subdirectories that aren't empty from the "Records" folder to the "Backup" folder on drive "D", retaining the file data, attributes, and timestamps with 16 multi-threaded copy operation, type the following:
228
+
To copy all files and subdirectories that aren't empty from the "Records" folder to the "Backup" folder on drive "D", retaining the file data, attributes, and timestamps with 16 multi-threaded copy operation, type:
To move files and subdirectories, excluding empty directories, from the "Records" folder to the "Backup" folder on drive "D", and exclude files older than 7 days, type the following:
234
+
To move files and subdirectories, excluding empty directories, from the "Records" folder to the "Backup" folder on drive "D", and exclude files older than 7 days, type:
To copy all files and subdirectories, including empty directories, from the "Records" folder to the "Backup" folder on drive "D" showing the estimated time for each file and delete any files and directories in the destination that don't exist from the source, type the following:
240
+
To copy all files and subdirectories, including empty directories, from the "Records" folder to the "Backup" folder on drive "D" showing the estimated time for each file and delete any files and directories in the destination that don't exist from the source, type:
To copy all files and subdirectories from the folder named "Records" on the "C" drive to a folder named "Backup" on the "D" drive while limiting the I/O rate to 1 megabyte per second during the copy operation, type the following:
246
+
To copy all files and subdirectories from the folder named "Records" on the "C" drive to a folder named "Backup" on the "D" drive while limiting the I/O rate to 1 megabyte per second during the copy operation, type:
247
247
248
248
```cmd
249
249
robocopy C:\Records D:\Backup /iorate:1m
250
250
```
251
251
252
+
To skip copying files from a source folder to a destination folder when the files already exist in the destination folder, regardless of whether they're newer, older, or modified, type:
0 commit comments