tags:

views:

2242

answers:

8

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?

A: 

Perhaps try robocopy.

Greg Hewgill
+10  A: 

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
It's also included in Vista default installation now.
macbirdie
A: 

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

Raynet
+1  A: 

I'm a big fan of TeraCopy.

Dave Webb
A: 

How about unison?

Swaroop C H
+2  A: 

/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

Remou
+1  A: 

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
A: 

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.

Christopher Horenstein