Questions tagged [robocopy]

Robocopy (or "Robust File Copy") is a command-line directory replication command.

502 questions
134
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,761
45
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,559
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
  • 835
26
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
  • 545
13
votes
11 answers

Robocopy does not copy the root folder and its time stamp

Robocopy does not copy the root folder and its time stamp - it copies all subdirectories and files (when the appropriate options are set) and there seems to be no option/argument to tell Robocopy you want the root folder itself and its time stamp or…
ptrcao
  • 173
11
votes
2 answers

How to robocopy with progress logged to console only?

I want to run RoboCopy that will update the console with % progress but not clutter the log file with % progress. The following RoboCopy command will perform the desired copy and append logging information the log file. RoboCopy
6
votes
2 answers

Log only changes in robocopy output

I can't find a way to log only the changes in the output of a robocopy execution, i.e.: those considered new file, new directory, newer file, extra file, or extra directory. The default output as I have it now consists of a list of all directories…
AndJM
  • 265
5
votes
2 answers

Robocopy unable to distinguish destination from source

I am using a robocopy batch file to backup my work. This is the code in my .bat file: @echo off cls echo press any key to continue backup! pause ROBOCOPY "F:\source" "D:\destination" /s /e /xf *.sas7bdat /xd "F:\directory_to_exclude" echo backup…
5
votes
4 answers

Robocopy launches and then hangs/just sits there

I'm setting up an archive process to store old files on an external hard drive. The computer in question is running Windows 7 Pro 32bit. We have a server folder with 150,000+ files in it, most of which are pretty small (below 200k). I'm trying to…
NateO
  • 71
  • 1
  • 1
  • 3
5
votes
1 answer

Robocopy ignoring files sporadically

I've got a robocopy script running that has been only working sporadically in the past few weeks. The Problem In the source directory, I'm receiving files twice a day. This script has worked for years flawlessly, but since ~December, two out of…
Patrick R.
  • 1,311
4
votes
3 answers

robocopy /mir changes destination folder name-how to prevent that

When I run a robocopy batch file that reads: robocopy "C:\Users\mgo\Documents" "E:\Documents backup on the UltraBay drive" /mir the destination folder gets renamed to "E:\My documents" WHY? How to keep that from happening? What arguments can I use…
mgo
  • 66
4
votes
4 answers

Does Robocopy keep a log file by default?

I copied a huge number of files using Robocopy, and received a note at the end that two files failed. I didn't set a switch to save a log file. Is there a log file saved in a default location automatically? I'd obviously prefer not to re-copy…
Gabe
  • 41
4
votes
2 answers

How can I find robocopy failures in the log?

After I use Robocopy to copy a folder, I sometimes get failures in the run log summary at the bottom (please see picture), however, I don’t see how to locate them in the actual list of files in the log. How can I locate the failures in the…
3
votes
1 answer

why does robocopy say this file is older?

why does robocopy say this file is older? Robocopy shows (I think I used /MIR and /L) 2 M:\bk\laptopcopy\pics\ Older 79248 regular-expressions-cheat-sheet-v2.png None of the time stamps seem to reflect that…
barlop
  • 23,849
3
votes
2 answers

Robocopy reports less than 100%

I'm using robocopy to copy a large number of files (300,000 files totalling around 4TB) from one NAS drive to another. Here is a sample command: robocopy \\nas1\myfolder \\nas2\myfolder /E /R:1 /W:5 I've done this hundreds of times before across a…
1
2 3 4 5 6