什么是同步两台电脑的好工具

rom*_*ovs 9 synchronization

在家里,我有一台运行 arch linux 的电脑塔。最近我也在路上买了笔记本电脑,但我想在家的时候在电脑塔上工作。

现在我对我的机器的配置方式非常敏感(这就是我需要笔记本电脑的原因,我讨厌我大学的 Windows 7 工作站)。我想知道是否有办法同步这两台机器?我希望这些是彼此的“精确”克隆,所以我可以从一个切换到另一个(当然是在同步之后)。

我正在考虑使用,rsync但我不知道这是否是最好的选择。如果是这样,我应该注意什么?有什么好的教程吗?

Also, if possible, I would also like the use the home pc as a website server, so there are some sections of the machine that need not be synced (namely the website's directories).

Just to be clear: both computers will be running Arch Linux.

pol*_*mon 6

There is one tool, that goes beyond rsync, which personally I think is one of the best syncing tools out there, and that is Unison.

I should point out though, that a total 1:1 copy of one machine and the other, is probably not the best idea, since those are two different computers, etc.

但是,使用rsync或可以轻松完成同步文档文件夹unison。另一种选择是git不仅将存储库用于项目,还用于配置文件和其他文档之类的内容。由于这是一个去中心化的系统,您不需要同步到服务器等。

部分同步您的$HOME目录应该没有问题,只需注意 Gnome 配置等内容。本质上,您应该仔细决定同步什么,不同步什么。


Not*_*ble 0

你最好的选择(我认为)是手动指定需要同步的配置文件、文件夹等。然后确实运行 rsync 或其他同步程序/工具。