Questions tagged [robocopy]

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

516 questions
152
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…
136
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,851
91
votes
8 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,472
  • 2
  • 15
  • 14
50
votes
15 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
  • 801
48
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
  • 621
  • 1
  • 7
  • 11
48
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
  • 833
47
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,639
43
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,150
41
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
  • 411
37
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
  • 523
36
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,448
32
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,448
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
29
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
  • 453
  • 1
  • 6
  • 10
27
votes
4 answers

Robocopy - Copy directory into another directory

I can't believe that I am having trouble in copying a directory into another directory via the windows command line. What I want to do is simple -: Lets say I have a directory -: C:\test and I want to copy test to D: So in D there should be a…
ng.newbie
  • 509
1
2 3
34 35