librsync(3) librsync(3) NNAAMMEE librsync - library for delta compression of streams SSYYNNOOPPSSYYSS #include <> #include <> #include <> cc ... --llrrssyynncc DDEESSCCRRIIPPTTIIOONN The lliibbrrssyynncc library implements network delta-compression of streams and files. The algorithm is similar to that used in the rrssyynncc((11)) and xxddeellttaa((22)) programs, but special- ized for transfer of arbitrary-length octet streams. Unlike most diff programs, lliibbrrssyynncc does not require access to both of the files on the same machine, but rather only a short ``signature'' of the old file and the complete contents of the new file. The canonical use of lliibbrrssyynncc is in the rrpprrooxxyy((88)) refer- ence implementation of the _r_s_y_n_c proposed extension to HTTP. It may be useful to other programs which wish to do delta-compression in HTTP, or within their own protocol. There are HTTP-specific utility functions within lliibbrrssyynncc, but they need not be used. A number of tools such as rrddiiffff((11)) provide command-line and scriptable access to rsync functions. SSEEEE AALLSSOO rrddiiffff(1) _r_d_i_f_f _a_n_d _l_i_b_r_s_y_n_c _M_a_n_u_a_l _h_t_t_p_:_/_/_r_p_r_o_x_y_._s_o_u_r_c_e_f_o_r_g_e_._n_e_t_/ or _h_t_t_p_:_/_/_l_i_n_u_x_- _c_a_r_e_._c_o_m_._a_u_/_r_p_r_o_x_y_/. _d_r_a_f_t_-_p_o_o_l_-_r_s_y_n_c BBUUGGSS The rsync protocol is still evolving. There may be bugs in the implementation. The interface may change in the future, but it is becoming more stable. Many routines will panic in case of error rather than returning an error code to the caller. Patches to fix this are welcome, but at the current state of development aborting seems as useful as trusting to possibly-incom- plete checking in the client. AAUUTTHHOORR Martin Pool , with Andrew Tridgell . rproxy/rdiff development has been supported in part by Linuxcare, Inc, a leading provider of enterprise services for open source software.