windows 在 XP 上,同步文件和文件夹的最佳方式

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/225370/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 11:30:21  来源:igfitidea点击:

On XP, best way to synchronize files and folders

windowssynchronizationbackupfile-organization

提问by Rob Kam

I'm using SyncToy 1.4 and it would be fine for what I need except that:

我正在使用 SyncToy 1.4,它可以满足我的需要,除了:

  • It can't handle the assigned drive letter changing between systems (e.g. syncing a USB drive),
  • it leaves its own (hidden) files in the folders being synched (is this a limitation of the OS/FS?),
  • it recreates empty folders for ones that have been deleted,
  • it syncs new sub folders in folders that have been unselected from syncing
  • and sometimes finds all the files have changed when they are still the same as they were.
  • it can't handle very long file path/name
  • 它无法处理系统之间分配的驱动器号更改(例如同步 USB 驱动器),
  • 它在同步的文件夹中留下自己的(隐藏的)文件(这是 OS/FS 的限制吗?),
  • 它为已删除的文件夹重新创建空文件夹,
  • 它同步已取消选择同步文件夹中的新子文件夹
  • 有时会发现所有文件都发生了变化,而它们仍然保持原样。
  • 它无法处理很长的文件路径/名称

SyncToy 2.1 is too slow to be usable. Especially when run again on a folder without any changes it will start from scratch scanning all the files and sub-folders for differences.

SyncToy 2.1 太慢而无法使用。特别是在没有任何更改的文件夹上再次运行时,它将从头开始扫描所有文件和子文件夹的差异。

It has to be a solution without using Internet based storage, as this isn't always available and otherwise can be far too slow. I'd prefer something that doesn't add its own files to the folders to be synched, and something with which it's quick and easy to change file and folder synching selections. When run the less interactive the better, ideally safely synching multiple folder pairs with a couple of mouse clicks (as SyncToy does).

它必须是不使用基于 Internet 的存储的解决方案,因为这并不总是可用,否则可能会太慢。我更喜欢不将自己的文件添加到要同步的文件夹的东西,以及可以快速轻松地更改文件和文件夹同步选择的东西。运行时交互越少越好,理想情况下,只需单击几下鼠标即可安全地同步多个文件夹对(就像 SyncToy 那样)。

Do I have to use rsync and batch files? Something with a GUI for granny to use without difficulty, would be better. Here's my criteria:

我必须使用 rsync 和批处理文件吗?带有图形用户界面的东西可以让奶奶毫无困难地使用,会更好。这是我的标准:

  1. There is no requirement for an Internet connection.

  2. It must not create it's own housekeeping files/folders in either source or target (maybe this has to be done because of a shortcoming of NTFS?)

  3. Test: Source folder with two none-empty sub-folders A and B. Move sub-folder B into sub-folder A, does it duplicate this in the target folder?

  4. Test: Rename a file in sub-folder A, does it duplicate this in the target folder?

  5. Can multiple folder pair syncs be done at the same time with only one or two mouse clicks?

  6. Does it have an option for previewing the changes it's about to make?

  7. Does it allow easy changing of source and/or target paths?

  8. It must be quick, (especially if re-scanning two folder trees with nothing changed).

  9. Test: Sync USB drive on PC 1 then copy files and folders from USB drive to PC 2, change folders and files on PC 2 (while those on PC 1 stay the same), sync USB drive on PC 2 and then re-sync the files and folders on PC 1 from the USB drive. Can it do this without any errors?

  10. Excluding installation, can granny use it comfortably? -->

  1. 不需要互联网连接。

  2. 它不能在源或目标中创建自己的内务文件/文件夹(也许由于 NTFS 的缺点而必须这样做?)

  3. 测试:带有两个非空子文件夹 A 和 B 的源文件夹。将子文件夹 B 移动到子文件夹 A 中,是否将其复制到目标文件夹中?

  4. 测试:重命名子文件夹 A 中的文件,它是否在目标文件夹中复制了这个文件?

  5. 是否可以通过单击一两次鼠标同时完成多个文件夹对同步?

  6. 它是否有预览即将进行的更改的选项?

  7. 它是否允许轻松更改源和/或目标路径?

  8. 它必须很快,(尤其是在没有任何更改的情况下重新扫描两个文件夹树时)。

  9. 测试:在 PC 1 上同步 USB 驱动器,然后将文件和文件夹从 USB 驱动器复制到 PC 2,更改 PC 2 上的文件夹和文件(而 PC 1 上的文件夹和文件保持不变),在 PC 2 上同步 USB 驱动器,然后重新同步PC 1 上的文件和文件夹。它可以做到这一点而没有任何错误吗?

  10. 除了安装,奶奶能舒服的使用吗?-->

采纳答案by Rob Kam

Super Flexible File Synchronizercan detect reorganized folders and files and will quickly duplicate the the same moves, so it doesn't do unnecessary copying. Also it doesn't add it's own housekeeping files to the target folders. It also comes with a scheduler.

超级灵活的文件同步器可以检测重组的文件夹和文件,并会快速复制相同的动作,因此不会进行不必要的复制。此外,它不会将自己的内务管理文件添加到目标文件夹中。它还带有一个调度程序。

回答by Keith Patton

http://allwaysync.com/- and it's free

http://allwaysync.com/- 它是免费的

回答by Echostorm

SyncBackSE is a more robust solution that I use for daily backups to an external. It isn't free but its light, feature rich and intuitive.

SyncBackSE 是一个更强大的解决方案,我用于日常备份到外部。它不是免费的,但它轻便、功能丰富且直观。

http://www.2brightsparks.com/syncback/sbse.html

http://www.2brightsparks.com/syncback/sbse.html

回答by Dominic Rodger

Dropboxis absolutely awesome. It syncs automatically in the background, stores all files locally on every computer where you want to use the files, and centrally on a webserver. Files are sent encrypted, and it's free for up to 2GB of storage.

Dropbox绝对很棒。它会在后台自动同步,将所有文件本地存储在您要使用文件的每台计算机上,并集中存储在网络服务器上。文件以加密方式发送,免费提供高达 2GB 的存储空间。

You mentioned that you don't want to use web-based storage, but I think this still fits the bill - you can access files when offline (since you've got a local copy) if you make changes while offline, then the changes will be synced with the server when you come online. Not sure how it handles conflicting revisions though.

您提到您不想使用基于 Web 的存储,但我认为这仍然符合要求 - 如果您在离线时进行更改,则可以在离线时访问文件(因为您有本地副本),然后更改当您上线时将与服务器同步。不确定它如何处理冲突的修订版。

Works on Windows, Linux and Macs.

适用于 Windows、Linux 和 Mac。

回答by Vinzz

Ms. Robocopyseems to answer all of your criterias.

Robocopy 女士似乎可以满足您的所有标准。

Tons of options and really reliable.

大量的选择,非常可靠。

Command line only, but it's trivial to make/download a gui

仅限命令行,但制作/下载 gui 很简单

回答by Chris Brooks

I'd vote for allway sync, links up my main machine with a portable HDD backup in no time.

我会投票支持始终同步,立即将我的主机与便携式硬盘备份连接起来。

I have a 60,000 file folder structure, it can spot a simple change (one changed .txt file plus corresponding new .bak) and synchronise in under a couple of minutes.

我有一个 60,000 个文件夹结构,它可以发现一个简单的更改(一个更改的 .txt 文件加上相应的新 .bak)并在几分钟内同步。

That seems pretty useable to me...

这对我来说似乎很有用......

回答by Terminus

I use a distributed versioning control system called Mercurialfor that. It is CLI but you can use a nice front-end for it like TortoiseHG.

为此,我使用了一个名为Mercurial的分布式版本控制系统。它是 CLI,但您可以为它使用一个不错的前端,例如TortoiseHG

回答by e-satis

For unidirectional sync

用于单向同步

There is a windows port of one of the best Unix sync tool (rsync):

有一个最好的 Unix 同步工具 (rsync) 的 Windows 端口:

There are installers, no Cygwin dependencies, no need for any internet connection,etc.

有安装程序,没有 Cygwin 依赖项,不需要任何互联网连接等。

Rsync is very fast, lightweight and efficient, provided you take the time to learn to use it.

Rsync 非常快速、轻量级和高效,只要您花时间学习使用它。

For bidirectional sync

用于双向同步

The reference is Unisson. It's very easy to use and cross-platform since it runs with Java. But it's not lightening fast...

参考是Unisson。由于它使用 Java 运行,因此非常易于使用和跨平台。但它并没有快速减轻......

回答by Henning

I used Unisonfor a long time. It's free, it's cross-platform and it uses the rsync-Protocol to transfer only deltas of changes over network connections. It's also very thorough in examining files for changes -- and because of that it's unfortunately not very fast (you can speed it up significantly if you let it use file modification times as inode-equivalents under windows).

我使用Unison很长时间了。它是免费的,它是跨平台的,它使用 rsync 协议仅通过网络连接传输变化的增量。它在检查文件更改方面也非常彻底——不幸的是,它不是很快(如果让它使用文件修改时间作为 Windows 下的 inode 等效项,则可以显着加快速度)。

However, unless you're willing to spend money on SyncBackSE (which I use now and highly recommend), I think you'll get quite far with Unison.

但是,除非您愿意在 SyncBackSE(我现在使用并强烈推荐)上花钱,否则我认为您会在 Unison 上走得更远。

回答by Echostorm

Justin Frankel (of Winamp Fame) wrote this

贾斯汀弗兰克尔(Winamp Fame 的)写了这个

http://www.brothersoft.com/pathsync-64550.html

http://www.brothersoft.com/pathsync-64550.html