简体   繁体   English

在本地和虚拟机之间同步

[英]sync between local and virtual machine

I'm working on a windows platform and want to be able to auto sync my files one way 'on change' to my virtual windows or linux web server - also need to be able to filter file types.我在 windows 平台上工作,希望能够以一种“更改时”的方式自动同步我的文件到我的虚拟 windows 或 linux web 服务器 - 还需要能够过滤文件类型。 i can connect to the remote machine via.network drives.我可以通过网络驱动器连接到远程机器。

i'm ideally looking for a free, easy to set up solution - a commercial product that does what I need is called ViceVersa but its a little overkill and costs:)理想情况下,我正在寻找一种免费、易于设置的解决方案——一种可以满足我需要的商业产品,称为ViceVersa ,但它有点矫枉过正,而且成本高昂:)

Thanks Josh谢谢乔希

I'd use rsync - simple, easy to setup, and provides the filters you need.我会使用 rsync - 简单、易于设置,并提供您需要的过滤器。 Also very low on bandwidth after the first pass.第一次通过后带宽也非常低。

Here is a link explaining how to get it working in Windows是一个解释如何让它在 Windows 中工作的链接

Whilst rsync doesn't allow 'on-change' auto-syncing, it is very fast when it scans a sync'ed directory (even very large ones), so you could schedule a frequent sync to overcome this.虽然 rsync 不允许“on-change”自动同步,但它在扫描同步目录(即使是非常大的目录)时速度非常快,因此您可以安排频繁的同步来克服这个问题。

Edit: You could combine it with a program like this , to trigger an rsync on folder contents change.编辑:您可以将它与这样的程序结合起来,以在文件夹内容更改时触发 rsync。 Cheaper than viceversa比反之便宜

For other users, its worth mentioning lsyncd , it will auto sync on changes between two machines (by default deferring to rsync).对于其他用户,值得一提的是 lsyncd ,它会自动同步两台机器之间的更改(默认情况下推迟到 rsync)。 Will only work on Linux though, but if thats not a problem it works great.虽然只能在 Linux 上工作,但如果这不是问题,它会很好用。

It also seems that Sparkleshare has finally released some working code (Dropbox clone).似乎Sparkleshare终于发布了一些工作代码(Dropbox 克隆)。 Havent tried it myself but does cross-platform synching and you can setup your own server.自己还没有尝试过,但可以跨平台同步,您可以设置自己的服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM