Linux 中的实时文件镜像到 NAS

发布于 2024-12-15 21:39:59 字数 166 浏览 2 评论 0原文

谁能告诉我如何最好地将选定的文件和文件夹从 Linux 工作站实时镜像到 NAS(网络可寻址存储)盒?

这些文件非常大(> 50GB)并且正在不断修改,因此我只想更改文件中已更改、添加或删除的部分。

仅供参考:这些文件实际上是 Virtual Box 虚拟硬盘 (VDI) 文件。

Can anyone tell how I might best mirror selected files and folders to a NAS, (Network Addrssable Storage) box from a Linux workstation in real-time?

These are very large files, (> 50GB) and are being continually modified, so I would only like to change those portions of the files that have been changed, added or deleted.

FYI: These files are actually Virtual Box virtual hard disk (VDI) files.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

荆棘i 2024-12-22 21:39:59

我发现我的 Synology DS211J NAS 可以运行 RSync 服务。所以我启用了它并使用lsyncd作为实时镜像...VirtualBox VM...一切都运行得很好。

Rsync 仅同步文件中发生更改的部分,因此在同步大文件方面非常有效。

I discovered that my Synology DS211J NAS can run an RSync service. So I enabled that and used lsyncd for the live mirror... the VirtualBox VMs... all works very well.

Rsync only synchronises the parts of files that have change and so is very efficient at synchronising large files.

水波映月 2024-12-22 21:39:59

在 @awm 提到的解决方案中,只有 drbd 提供块级实时同步。其他工具将满足您仅传播增量的目标,但它们是异步运行的。事实上, rsync 在这种情况下也能正常工作,因为您并不试图提供双向同步。

要让 drbd 提供块级复制,您需要在 NAS 上的两个工作站上安装 drbd 内核模块和用户空间工具...这意味着只有当您的 NAS 实际上是一个相当通用的 Linux 机器时,此解决方案才适用。你有很大的控制权。

Of the solutions that @awm mentioned, only drbd provides block-level, realtime synchronization. The other tools will meet your goal of only propagating deltas, but they operate asynchronously. In fact, rsync will work just as well in this case, since you're not trying to provide bi-directional synchronization.

For drbd to provide block-level replication, you need need to install the drbd kernel modules and userspace tools on both the workstation on the NAS...which means this solution is only appropriate if your NAS is actually a fairly generic Linux box over which you have a great deal of control.

深爱不及久伴 2024-12-22 21:39:59

在此之前,我只是想建议你不要这样做。您可以轻松地限制您的网络和 NAS,并在您的主机上造成各种问题。

话虽如此,这些人声称他们可以做到:
Unison 可以在以下位置找到: http://www.cis.upenn.edu/~bcpierce/齐声/
PeerSoft 也可以做到这一点: http://www.peersoftware.com/products/peersync /peersyncserver/overview.aspx
也许 - http://www.drbd.org/

Before hand I just want to suggest that you don't do this. You can easily bottlenet your network and NAS and cause all sorts of problem on your host.

That being said, these claim they can do it:
Unison can be found at: http://www.cis.upenn.edu/~bcpierce/unison/
PeerSoft can do it too: http://www.peersoftware.com/products/peersync/peersyncserver/overview.aspx
Maybe - http://www.drbd.org/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文