许多二进制文件同步 [英] Many binary files synchronization

查看:90
本文介绍了许多二进制文件同步的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Office服务器上大约有10万个文件(图像,pdf等). 每天文件计数增长大约100-500个项目,大约20-50个旧文件发生变化.

I have about 100 000 files on office server (images, pdf's, etc...) Each day files count grows about 100-500 items, and about 20-50 old files changes.

使Web服务器与这些文件同步的最佳方法是什么? 像Mercurial,GIT这样的系统可以提供帮助吗? (在Office服务器上,我要提交更改,而Web服务器会定期进行更新)?

What is the best way to synchronize Web-server with these files? Can any system like Mercurial, GIT help? (On office server, I'll commit changes, and web-server periodically do updates)?

第二个问题是,在Web服务器上,我有用户生成的内容(二进制文件)(其他文件). 该用户每天上传约1000-2000个新文件.旧文件不变. 而且我需要将这些文件备份到本地计算机. 在这种情况下,像Merurial,GIT这样的系统可以提供帮助吗? (在网络服务器上,我将通过cron提交这些文件,而在本地计算机上,我将进行更新)

Second problem is, that on Web-server I have user-generated-content (binary-files) (other files). Each day this users upload about 1000-2000 new files. Old files don't change. And I need to backup these files to local machine. Can any system like Merurial, GIT help in this situation? (On web-server I'll commit these files by cron, and on local machine I'll do updates)

谢谢

UPD.

Office服务器是Windows Server 2008 R2 Web服务器是Debian 5 lenny

Office server is Windows Server 2008 R2 Web-server is Debian 5 lenny

推荐答案

最简单,最可靠的机制(以我的经验)是rsync.

The simplest and most reliable mechanism (in my experience) is rsync.

但是,在Windows上,由于Cygwin与命名管道交互的问题,严重破坏了ssh上的rsync. Rsync通过它自己的协议可以工作(只要您不关心加密即可),但是我在将rsync保留为Windows服务一次超过几天的过程中遇到了很多问题. DeltaCopy是一个Windows应用程序,在后台使用rsync工具.尽管我没有尝试过ssh选项,但它似乎工作得很好.

On Windows, however, rsync over ssh is badly broken due to issues with how Cygwin interacts with named pipes. Rsync over its own protocol works (as long as you don't care about encryption), but I've had lots of problems getting rsync to stay up as a Windows service for more than a few days at a time. DeltaCopy is a Windows app that uses the rsync tools behind the scenes; it seems to work very well, though I haven't tried the ssh option.

这篇关于许多二进制文件同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆