5

The situation: I have a pieceofcrapuous laptop. One of the things that make it pieceofcrapuous is that the battery is dead, and the power cable pulls out of the back with little effort.

I recently received a non-pieceofcrapuous laptop, and I am in the process of copying everything from old to new. I'm trying to xcopy c:*.* from the old machine to an external hard drive, but because the cord pulls out so frequently, the xcopy is interrupted fairly often.

What I need is a switch in XCopy that will copy eveything except for files that already exist in the destination folder -- the exact opposite of the behavior of the /U switch.

Does anyone know of a way to do this?

Danimal
  • 7,672
  • 8
  • 47
  • 57

9 Answers9

15

I find RoboCopy is a good alternative to xcopy. It supports high latency connections much better and supports resuming a copy.

References

Wikipedia - robocopy

Downloads

Edit Robocopy was introduced as a standard feature of Windows Vista and Windows Server 2008.

Edward Wilde
  • 25,967
  • 8
  • 55
  • 64
7

/D may be what you are looking for. I find it works quite fast for backing-up as existing files are not copied.

xcopy "O:\*.*" N:\Whatever /C /D /S /H 

/C Continues copying even if errors occur. 
/D:m-d-y Copies files changed on or after the specified date. 
    If no date is given, copies only those files whose source time 
    is newer than the destination time. 
/S Copies directories and subdirectories except empty ones. 
/H Copies hidden and system files also. 

More information: http://www.computerhope.com/xcopyhlp.htm

Fionnuala
  • 90,370
  • 7
  • 114
  • 152
3

Beyond Compare 3 is the best utility I've seen for things like this. It makes everything really easy to assess, and really easy to manipulate.

3

I'm a big fan of TeraCopy.

David Webb
  • 190,537
  • 57
  • 313
  • 299
2

It was not clear if you only wanted a command line tool, but Microsoft's free SyncToy program is great for maintaining a replication between a pair of volumes. It supports pushing changes in either or both directions. That is, it support several different types of replication modes.

Tall Jeff
  • 9,834
  • 7
  • 44
  • 61
1
robocopy c:\sourceDirectory\*.* d:\destinationDirectory\*.* /R:5 /W:3 /Z /XX /TEE

This will work for your alternative to xCopy... best method imho

Good luck!

rud3y
  • 2,282
  • 2
  • 21
  • 30
1

XcopyGUI. A small, standalone GUI front-end for xcopy. Free. http://lorenstuff.weebly.com/

Loren
  • 11
  • 1
0

I would suggest using rsync, several ports are available, but cwrsync seems to work nicely on Windows.

Raynet
  • 463
  • 6
  • 16
0

How about unison?

Swaroop C H
  • 16,902
  • 10
  • 43
  • 50