远程文件快速同步在文件备份与恢复、Web缓存等应用场景有广泛的应用。该文给出了一种新的文件快速远程同步方法,在客户端计算文件新旧版本之间的状态差异集和在服务器端重放文件状态差异集实现文件内容差异同步和重命名优化;给出了文件状态差异集的生成、重放和优化方法。实验结果表明,与rsync相比,文件内容差异同步网络流量显著降低,同时,重命名优化网络流量为KB级,与文件长度无关,显著地降低了网络流量。
Fast synchronization for remote file is widely used in many scenarios such as file system backup and restore, web mirroring, etc. A new method for remote file fast synchronization is proposed. The file state difference set is calculated at client end. The difference synchronization and rename optimization are achieved by replaying the file state difference set at server end. The generation, replay and optimization methods for the file state difference set are given. The experimental results indicate that this method offers signficant improvement over rsync. The network traffic of file content synchomization decreases remarkablely. And the network traffic of rename optimization is KB-level and independent of file length.