MyGit

librsync/librsync

Fork: 145 Star: 718 (更新于 2024-11-27 02:22:08)

license: LGPL-2.1

Language: C .

remote delta-compression library

最后发布版本: v2.3.4 ( 2023-02-19 13:14:51)

官方网址 GitHub网址

README

http://librsync.sourcefrog.net/

\copyright

Copyright 1999-2016 Martin Pool and other contributors.

librsync is distributed under the GNU LGPL v2.1 (see COPYING), which basically means that you can dynamically link librsync into non-GPL programs, but you must redistribute the librsync source, with any modifications you have made.

librsync contains the BLAKE2 hash algorithm, written by Samuel Neves and released under the CC0 public domain dedication.

Introduction

librsync is a library for calculating and applying network deltas, with an interface designed to ease integration into diverse network applications.

librsync encapsulates the core algorithms of the rsync protocol, which help with efficient calculation of the differences between two files. The rsync algorithm is different from most differencing algorithms because it does not require the presence of the two files to calculate the delta. Instead, it requires a set of checksums of each block of one file, which together form a signature for that file. Blocks at any position in the other file which have the same checksum are likely to be identical, and whatever remains is the difference.

This algorithm transfers the differences between two files without needing both files on the same system.

librsync is for building other programs that transfer files as efficiently as rsync. You can use librsync in a program you write to do backups, distribute binary patches to programs, or sync directories to a server or between peers.

This tree also produces the \ref page_rdiff that exposes the key operations of librsync: generating file signatures, generating the delta from a signature to a new file, and applying the delta to regenerate the new file given the old file.

librsync was originally written for the rproxy experiment in delta-compression for HTTP. librsync is used by: Dropbox, rdiff-backup, Duplicity, and others. (If you would like to be listed here, let me know.)

What librsync is not

  1. librsync does not implement the rsync wire protocol. If you want to talk to an rsync server to transfer files you'll need to shell out to rsync. You cannot make use of librsync to talk to an rsync server.

  2. librsync does not deal with file metadata or structure, such as filenames, permissions, or directories. To this library, a file is just a stream of bytes. Higher-level tools can deal with such issues in a way appropriate to their users.

  3. librsync also does not include any network functions for talking to SSH or any other server. To access a remote filesystem, you need to provide your own code or make use of some other virtual filesystem layer.

More information

  • \ref page_downloads
  • \ref page_versioning
  • \ref page_install
  • \ref page_rdiff
  • \ref page_librsync
  • \ref page_formats
  • \ref page_support
  • CONTRIBUTING
  • NEWS
  • TODO

最近版本更新:(数据更新于 2024-09-16 17:40:41)

2023-02-19 13:14:51 v2.3.4

2023-02-16 16:26:31 v2.3.3

2021-04-10 12:36:21 v2.3.2

2020-05-19 09:06:58 v2.3.1

2020-04-07 15:18:56 v2.3.0

2019-10-16 20:10:57 v2.2.1

2019-10-12 12:38:26 v2.2.0

2019-08-18 20:35:10 v2.1.0

2018-02-27 18:16:06 v2.0.2

2017-10-17 09:52:14 v2.0.1

librsync/librsync同语言 C最近更新仓库

2024-12-21 10:48:05 EdgeTX/edgetx

2024-12-15 21:46:59 arendst/Tasmota

2024-12-15 21:29:56 bol-van/zapret

2024-12-13 20:23:33 XITRIX/Moonlight-Switch

2024-12-11 15:17:04 curl/curl

2024-12-07 10:42:25 libsdl-org/SDL