\label{index_md_README}%
\Hypertarget{index_md_README}%
 \href{http://librsync.sourcefrog.net/}{\texttt{ http\+://librsync.\+sourcefrog.\+net/}}

\begin{DoxyCopyright}{Copyright}

\end{DoxyCopyright}
Copyright 1999-\/2016 Martin Pool and other contributors.

librsync is distributed under the \href{http://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html}{\texttt{ 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 \href{http://creativecommons.org/publicdomain/zero/1.0/}{\texttt{ CC0 public domain dedication}}.\hypertarget{index_autotoc_md42}{}\doxysubsection{Introduction}\label{index_autotoc_md42}
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 \mbox{\hyperlink{page_rdiff}{rdiff command}} 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\+: \href{https://dropbox.com/}{\texttt{ Dropbox}}, \href{http://www.nongnu.org/rdiff-backup/}{\texttt{ rdiff-\/backup}}, \href{http://www.nongnu.org/duplicity/}{\texttt{ Duplicity}}, and others. (If you would like to be listed here, let me know.)\hypertarget{index_autotoc_md43}{}\doxysubsubsection{What librsync is not}\label{index_autotoc_md43}

\begin{DoxyEnumerate}
\item librsync does not implement the rsync wire protocol. If you want to talk to an rsync server to transfer files you\textquotesingle{}ll need to shell out to {\ttfamily rsync}. You cannot make use of librsync to talk to an rsync server.
\item 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.
\item 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.
\end{DoxyEnumerate}\hypertarget{index_autotoc_md44}{}\doxysubsection{More information}\label{index_autotoc_md44}

\begin{DoxyItemize}
\item \mbox{\hyperlink{page_downloads}{Downloads}}
\item \mbox{\hyperlink{page_versioning}{Versioning}}
\item \mbox{\hyperlink{page_install}{Installing}}
\item \mbox{\hyperlink{page_rdiff}{rdiff command}}
\item \mbox{\hyperlink{page_librsync}{librsync library}}
\item \mbox{\hyperlink{page_formats}{File formats}}
\item \mbox{\hyperlink{page_support}{Support}}
\item \mbox{\hyperlink{md_CONTRIBUTING}{CONTRIBUTING}}
\item \mbox{\hyperlink{md_NEWS}{NEWS}}
\item \mbox{\hyperlink{md_TODO}{TODO}} 
\end{DoxyItemize}