Robocopy (or "Robust File Copy") is a command-line directory replication command.
Questions tagged [robocopy]
484 questions
150
votes
12 answers
Getting ROBOCOPY to return a "proper" exit code?
Is it possible to ask ROBOCOPY to exit with an exit code that indicates success or failure?
I am using ROBOCOPY as part of my TeamCity build configurations, and having to add a step to just silence the exit code from ROBOCOPY seems silly to…
Lasse V. Karlsen
- 3,656
- 10
- 41
- 58
131
votes
2 answers
What does Robocopy mean by tweaked, lonely, and extra?
The Robocopy documentation for the option /it is simply “Includes ‘tweaked’ files”. What does “tweaked” mean?
The Robocopy documentation for the option /xl is simply “Excludes ‘lonely’ files and directories”. What does “lonely” mean?
sean e
- 2,721
- 6
- 23
- 23
87
votes
6 answers
Using robocopy and excluding multiple directories
I'm trying to copy some directories from a server before I restore from backup (my latest backup was corrupt, so I have to use an older one :( ). I'm in the Windows Recovery Environment and have access to the server's file system G:\ and my backup…
GorrillaMcD
- 2,313
- 2
- 14
- 13
46
votes
3 answers
Linux equivalent to robocopy?
It’s kind of funny, there are a lot of ways in which Linux command line tools are vastly superior to Windows ones, but one thing I have not found an equivalent to is robocopy. Robocopy is way more versatile than cp, and I can’t figure out how to do…
Ibrahim
- 803
- 2
- 7
- 11
44
votes
6 answers
Will robocopy resume after being aborted?
My users directory is 58 GB in size and I am copying it to a portable USB backup drive from Windows recovery using Robocopy.
robocopy G:\Users\ E:\Backup\T420\ /MIR /SEC /MT:32 /V /LOG:G:\bak\robocopy.txt
The laptop is USB 2 and the backup drive is…
opticyclic
- 1,549
- 1
- 14
- 21
42
votes
2 answers
ROBOCOPY command to do an incremental backup
I am overwhelmed by the ROBOCOPY documentation.
I want to do an incremental backup of my local files to the network drive (M). I want it to run as quickly as possible, with no log file and with as little text as possible to the screen. My files…
dmm
- 561
- 1
- 6
- 11
42
votes
13 answers
Why can't a Task Scheduler job access a mapped network drive?
I have a Task Scheduler job to run Robocopy for backing up local files to a network share. I have to use domain credentials to access the network share but the local computer is not on the domain, and the job is run as a local admin. This solution…
Craig W
- 721
- 1
- 7
- 10
42
votes
5 answers
What is the benefit of copy over xcopy on the command line?
I know that xcopy has more options however are there any benefits to using copy rather than xcopy?
Phil Hannent
- 1,132
- 1
- 8
- 15
38
votes
2 answers
How to copy ONLY those files that are not in the destination?
Is it possible to use robocopy to copy only the files that do not exist in destination?
robocopy has a /is (include same files) switch. What I am looking for is an /xs switch. If a file exists in both the source and the destination I don't want it…
yky
- 381
- 1
- 3
- 3
34
votes
4 answers
What is backup mode in Robocopy
I am trying to copy a large database backup file over network.
The traditional program copy or xcopy failed with different binary resulted. Also tried robocopy without parameter, and resulted a failure. Just did another attempt with robocopy using…
ydoow
- 483
- 1
- 5
- 8
33
votes
3 answers
Does Robocopy SKIP copying existing files by default?
I've read (somewhere) that Robocopy skips copying over existing files by default.
But... I can't find any Command Line switches for that.
Clay Nichols
- 5,264
- 28
- 82
- 103
29
votes
2 answers
How does Robocopy determine if a file is "changed"?
I'm looking here for detailed info about how the algorithm of Robocopy determines whether a file has changed or not. If I use for example the /mir parameter, Robocopy must determine which files are changed and which not. Does it use the modified…
user54512
- 825
- 2
- 9
- 18
28
votes
3 answers
How to copy only new files AND only those that are modified after a certain date?
I would like to copy files from one drive to another, but I only want to copy source files that are newer than the destination file. BUT, I also want to only copy source files that have been changed after a certain date.
I know I can use xcopy to…
PaulStock
- 443
- 1
- 5
- 10
27
votes
3 answers
Are there any Pros/Cons to the /j Robocopy option (unbuffered copying)
Robocopy has a /J command line option recommended for copying large files (it copies using unbuffered I/O).
What (if any) downsides are there?
Any reason this isn't enabled by default? (That's what made me think there MIGHT be downsides.)
Clay Nichols
- 5,264
- 28
- 82
- 103
23
votes
2 answers
Robocopy /XD Won't Work With Relative Paths
I am trying to run a robocopy /MOVE command but exclude a couple of sub-directories specified with the /XD flag.
robocopy ".\CurrentDir" ".\NewDir" /XD ".\CurrentDir\SubDir1" ".\CurrentDir\SubDir2" /E /MOVE
Unfortunately it ignores the /XD option…
user8783
- 515
- 2
- 4
- 9