65 votes

Will robocopy resume after being aborted?

If the folder contains a very large number of files, then it will indeed take a long time, required by the frequent accesses to the disk catalogs, for both source and target. In addition, a USB3 disk ...
  • 431k
30 votes
Accepted

Robocopy - Copy directory into another directory

If you want to create an exact duplicate, use the following version (which is equivalent to adding /E and /PURGE: robocopy c:\source d:\destination /MIR If all you want to do is copy the directories ...
  • 1,570
26 votes

Will robocopy resume after being aborted?

It is OK to stop Robocopy in the middle of an operation. By default it will not re-copy the files that have already been copied. The overhead for determining where to resume from (or essentially to ...
  • 1,489
22 votes
Accepted

Does Robocopy SKIP copying existing files by default?

By default, Robocopy skips copying existing files if the specific metadata of the files match then those files will be skipped from the "file" copy operation (/COPY:DAT). Robocopy Defaults ...
21 votes

Will robocopy resume after being aborted?

I've used robocopy for years now, and know that you can stop a copy in the middle of a file and restarting will swiftly get back to where it left off. Unless you use the /XN option, robocopy will ...
  • 1,202
20 votes

What is backup mode in Robocopy

Backup mode is a way to read and write files ignoring any permissions problems. It uses the SeBackupPrivilege (reading) and SeRestorePrivilege (writing) in order to read/write any and all files, ...
19 votes

Can Robocopy monitor files on a time increment of less than one minute?

Your tags state you are using Windows 8. This is good, since you have the great tool that is PowerShell, and a handy little cmdlet named Register-ObjectEvent. Create a text file, change the extension ...
  • 416
19 votes
Accepted

Robocopy unable to distinguish destination from source

Possible problem is that your source or/and destination ends by \. So you have that sequence of characters \", and robocopy interpret it as escape sequence for literal ". You have to remove \ or ...
  • 2,949
18 votes

Are there any Pros/Cons to the /j Robocopy option (unbuffered copying)

Great question. Unbuffered I/O is a simple file copy from a source location to a destination location. Buffered I/O augments the simple copy to optimize for future reads of (and writes to) the same ...
16 votes
Accepted

How do I create a log of robocopy actions and save in a text file named with today's date?

I want to log name of all those copied assets in a .txt file. This .txt file should be saved in the form of "currentDate.txt". Use the robocopy /log:<LogFile> option. You might also ...
  • 149k
15 votes
Accepted

What does "robocopy /NOOFFLOAD" do?

In theory the load on the remote server will (by aggregate) be the same. It is the same amount being downloaded from one server and the same amount being uploaded to another, but the focus point of ...
  • 86.7k
12 votes

What does "robocopy /NOOFFLOAD" do?

Offload is an optimization mechanism: when you're copying a file between two locations that are not on your machine, there's no need for your machine to see the data iff the locations can agree with ...
12 votes
Accepted

How does Robocopy handle file system links (symbolic links, hard links and junctions)?

The Robocopy docs lists options that control Robocopy's behavior regarding file system links: /sl Don't follow symbolic links and instead create a copy of the link. /xj Excludes junction points, ...
11 votes
Accepted

How to speed up robocopy

Can I add any options to increase the performance of the robocopy command? The following options will change the performance of robocopy: /J : Copy using unbuffered I/O (recommended for large ...
  • 149k
10 votes

Does Robocopy SKIP copying existing files by default?

robocopy SOURCE DESTINATION FILE(S) /IS Where IS stands for Include Same file(s). Using this switch causes to overwrite existing files. See below: :: :: File Selection Options : :: /...
10 votes

Does Robocopy SKIP copying existing files by default?

Unfortunately, the official documentation doesn't describe the logic behind what files are skipped by default. The unofficial ss64.com documentation, however, provides the crucial pointer (emphasis ...
  • 1,866
9 votes

robocopy - when does it delete files from destination?

When you use either one of two options: /PURGE : Delete dest files/folders that no longer exist in source. /MIR : MIRror a directory tree - equivalent to /PURGE plus all subfolders (/E) example: ...
8 votes

Why can't a Task Scheduler job access a mapped network drive?

In my case all i had to do was uncheck the run with highest privileges flag but im running the task in on the same user as the user who mapped the drive.
  • 357
8 votes

How do I hide "Extra File" and "100%" lines from robocopy output?

The /XX option excludes the extra files from being listed. Perversely, this option is listed in File Selection options, not Logging. It is the opposite of the /X logging option, I guess.
  • 97
8 votes
Accepted

Use robocopy to mirror source but ignore timestamp

After a succesfull copy in explorer the timestamps are equal but somehow Robocopy copies the same file the next time it runs and claims source file is newer. Seems to be a problem with the smb ...
8 votes
Accepted

Syncing between C drive and phone with robocopy

No, this is not possible. You’re accessing the phone using MTP or PTP. They are not filesystem access protocols but rather object storage protocols. The objects just happen to have a 1:1 mapping to ...
  • 57.1k
8 votes
Accepted

Log only changes in robocopy output

If you carefully look at the documentation or robocopy /?, you will find the /NDL switch. Specifies that directory names are not to be logged. With this you will have no output on individual names ...
  • 8,825
7 votes

ROBOCOPY command to do an incremental backup

I like to use the following: robocopy "C:\Users\<user>" "F:\robocopy\<user>" /XJD /R:0 /XA:SH /E /ZB /XO /XD "Downloads" "AppData" /LOG:robocopy.log /TEE I run this as Administrator so ...
  • 196
7 votes

Using robocopy and excluding multiple directories

you have to repeat the /XDpart C:\>robocopy "C:\Users\weberjn\Google Drive" "u:\Google Drive" /e /dcopy:t /copy:DT /r:0 /XD "C:\Users\weberjn\Google Drive\photos" /XD "C:\Users\weberjn\Google ...
  • 461
7 votes

Using robocopy and excluding multiple directories

I know this doesn't answer OP's question, but to anyone here from google: XD will fail in a job file if you use quotes. Bad: :: :: Exclude These Directories : :: /XD :: eXclude Directories ...
  • 542
7 votes

How to copy user's appdata folder using robocopy?

I've had good results copying the User folder using the /xj switch.
6 votes

Can Robocopy monitor files on a time increment of less than one minute?

DSynchronize is a stand-alone utility that let you periodically synchronize two or more folders on Hard Disk, Floppy Disk, LAN, USB Key, CD-DVD (with packet writing software) and FTP server. It's not ...
6 votes

Robocopy to copy only new folders and files

My simple commands that works wonderful is: RoboCopy.exe "\\\SourceServer\Folder" "X:\WEB" /copy:datso /mir /fft /r:0 /w:0 /secfix /mt:20 /xo /xf thumbs.db /log+:X:\TON-FS4.log /nc /ns /np /ndl /nfl ...
6 votes

How to copy a directory on Windows, preserving timestamps of all directories being copied

Make a compressed archive of the data, such as a .zip file. You should then be able to copy that .zip file to any drive and decompress it. All the folders and files should then appear with all their ...
  • 1,207
6 votes
Accepted

ROBOCOPY /XN: newer in source or destination?

It appears that the Robocopy /XN switch excludes files that are newer in the source from being copied to the destination directory. So if there is a newer file in the source folder than what is in the ...

Only top scored, non community-wiki answers of a minimum length are eligible