XCopy用于复制大量文件的替代方案?

时间:2021-06-01 16:02:00

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.

我最近收到了一台非便携式笔记本电脑,我正在复制从旧到新的所有内容。我正在尝试从旧机器到外部硬盘驱动器xcopy c:*。*,但由于线缆频繁拉出,xcopy经常被中断。

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.

我需要的是XCopy中的一个开关,它将复制除目标文件夹中已存在的文件之外的其他内容 - 与/ U开关的行为完全相反。

Does anyone know of a way to do this?

有谁知道这样做的方法?

9 个解决方案

#1


6  

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

/ D可能正是您要找的。我发现备份工作速度非常快,因为不会复制现有文件。

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

更多信息:http://www.computerhope.com/xcopyhlp.htm

#2


14  

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

我发现RoboCopy是xcopy的一个很好的替代品。它更好地支持高延迟连接,并支持恢复副本。

References

Wikipedia - robocopy

* - robocopy

Downloads

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

编辑Robocopy是Windows Vista和Windows Server 2008的标准功能。

  • Robocopy is shipped as part of the Windows Server 2003 resource kit and can be download from the Microsoft download site.

    Robocopy作为Windows Server 2003资源工具包的一部分提供,可以从Microsoft下载站点下载。

  • A very simple GUI has also been release for RoboCopy on technet http://technet.microsoft.com/en-us/magazine/cc160891.aspx

    一个非常简单的GUI也已发布在technet上的RoboCopy http://technet.microsoft.com/en-us/magazine/cc160891.aspx

#3


2  

I'm a big fan of TeraCopy.

我是TeraCopy的忠实粉丝。

#4


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.

目前尚不清楚你是否只想要一个命令行工具,但微软的免费SyncToy程序非常适合维护一对卷之间的复制。它支持在任一方向或两个方向上推动更改。也就是说,它支持几种不同类型的复制模式。

#5


2  

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.

Beyond Compare 3是我见过的最好的实用工具。它使一切都很容易评估,并且非常容易操作。

#6


1  

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

XcopyGUI。用于xcopy的小型独立GUI前端。*。 http://lorenstuff.weebly.com/

#7


1  

robocopy c:\sourceDirectory\*.* d:\destinationDirectory\*.* /R:5 /W:3 /Z /XX /TEE

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

这将适用于替代xCopy ...最好的方法imho

Good luck!

#8


0  

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

我建议使用rsync,有几个端口可用,但cwrsync似乎在Windows上运行良好。

#9


0  

How about unison?

齐声怎么样?

#1


6  

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

/ D可能正是您要找的。我发现备份工作速度非常快,因为不会复制现有文件。

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

更多信息:http://www.computerhope.com/xcopyhlp.htm

#2


14  

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

我发现RoboCopy是xcopy的一个很好的替代品。它更好地支持高延迟连接,并支持恢复副本。

References

Wikipedia - robocopy

* - robocopy

Downloads

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

编辑Robocopy是Windows Vista和Windows Server 2008的标准功能。

  • Robocopy is shipped as part of the Windows Server 2003 resource kit and can be download from the Microsoft download site.

    Robocopy作为Windows Server 2003资源工具包的一部分提供,可以从Microsoft下载站点下载。

  • A very simple GUI has also been release for RoboCopy on technet http://technet.microsoft.com/en-us/magazine/cc160891.aspx

    一个非常简单的GUI也已发布在technet上的RoboCopy http://technet.microsoft.com/en-us/magazine/cc160891.aspx

#3


2  

I'm a big fan of TeraCopy.

我是TeraCopy的忠实粉丝。

#4


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.

目前尚不清楚你是否只想要一个命令行工具,但微软的免费SyncToy程序非常适合维护一对卷之间的复制。它支持在任一方向或两个方向上推动更改。也就是说,它支持几种不同类型的复制模式。

#5


2  

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.

Beyond Compare 3是我见过的最好的实用工具。它使一切都很容易评估,并且非常容易操作。

#6


1  

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

XcopyGUI。用于xcopy的小型独立GUI前端。*。 http://lorenstuff.weebly.com/

#7


1  

robocopy c:\sourceDirectory\*.* d:\destinationDirectory\*.* /R:5 /W:3 /Z /XX /TEE

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

这将适用于替代xCopy ...最好的方法imho

Good luck!

#8


0  

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

我建议使用rsync,有几个端口可用,但cwrsync似乎在Windows上运行良好。

#9


0  

How about unison?

齐声怎么样?