Questions tagged [librsync]

librsync, the network delta compression library

librsync does network delta compression of arbitrary binary files. It implements the same algorithm as rsync, but not the same network protocol.

librsync provides three main operations:

  • generate a signature S from a file A
  • generate a delta D from S and a new file A1
  • apply D to A to reconstruct A1

The librsync source package also provides the rdiff command-line interface.

24 questions
10
votes
2 answers

Binary diff algorithm for commercial software

I'm working on application sending changed files to other computers. Currently a changed file is sent completely even if the change is minor. I'm looking for a library (C,C++,Java) that would allow me to create a binary diff and send only the delta…
stwissel
  • 19,390
  • 6
  • 44
  • 90
4
votes
5 answers

Best method to determine changed data in C++

I need to write a tool in C++ to determine the changed bits in a file compared against another file for replication. What would be the best method of accomplishing this? I don't have a specific OS or library in mind, I'm open to suggestions. My…
Chris Roland
  • 767
  • 3
  • 9
3
votes
0 answers

Building/calling librsync on Windows from Delphi 2010

I'm currently using the rdiff windows port from my delphi 2010 application to calculate delta/signature for remote delta/diff I'm trying to explore the possibility of using the librsync library instead of rdiff, I googled & read a lot, I found these…
TheDude
  • 2,815
  • 2
  • 41
  • 88
3
votes
1 answer

Librsync: Win10 and Win8/Win7 Different results

I'm using librsync for generating binary patches and send them to another users. But i faced a problem: on some files on win8/win7 checksum (sha512) after applying patch differs from checksum after applying patch on win10. librsync build with msvc…
2
votes
0 answers

Using rsync programmatically in c++

I am using rsync command-line tool to transfer files from a source folder to a destination folder as follows: rsync -r /source_folder /destination_folder How can this be done programmatically in c++? I have looked into librync, which is supposed…
vacky
  • 237
  • 3
  • 15
2
votes
1 answer

Stream.CopyTo Hangs when used with Librsync.PatchStream

I'm using Librsync in a project to calculate the differences between two versions of a file and apply the changes to the old file. Outside of my project I got it working in a simple console app that reads the files from 2 different directories,…
chickenbeef
  • 190
  • 9
2
votes
2 answers

How to use librsync functions to open remote files?

I am using librsync library for maintaining file versions. I am not able to open files from a network. Example (creating signature file): int main(int argc, char** argv)//FILE *original, FILE *signature) { if(argc != 2) { …
Chandan
  • 146
  • 2
  • 15
2
votes
1 answer

Installing rdiff on docker containers

I am trying to make a backup solution off docker containers using rdiff. I have python install and the python-dev packages but when I run the install command: python ./setup.py install I get the following error running install running…
user3001829
  • 19,124
  • 5
  • 15
  • 21
1
vote
0 answers

Unicode filenames as parameters in Command Prompt

I am successfully using rdiff.exe and cygwin1.dll to create signatures from command prompt. My Problem is that with Unicode files it is not working? rdiff -b 10240 signature "ฉันเจ็บ.txt" "ฉันเจ็บ.sig" I am using Windows7.
Aura
  • 85
  • 6
1
vote
2 answers

Can't pickle StringO objects (while trying to serialize the signature returned from librsync-python module)

https://pypi.python.org/pypi/python-librsync/0.1-5 import librsync # The destination file. dst = file('Resume-v1.0.pdf', 'rb') # Step 1: prepare signature of the destination file signature = librsync.signature(dst) I want to store the signature…
aste123
  • 1,122
  • 2
  • 16
  • 36
1
vote
1 answer

How to link librsync (which might have used libtool)

Just installed librsync using apt-get install librsync-dev on ubuntu. I can link other libraries like this pkg-config --libs --cflags glib-2.0 but I can't find librsync using pkg-config. How can I link it? UPDATE: I very new to C and all this…
Dulguun Otgon
  • 1,759
  • 1
  • 16
  • 35
1
vote
1 answer

Install librsync on Amazon EC2 instance

I have trouble installing this library called librsync on an Amazon standard linux instance. I tried this: yum install librsync-devel but I got No package librsync available (fair enough I guess!) I also followed the install instructions, which…
TheDude
  • 2,815
  • 2
  • 41
  • 88
0
votes
1 answer

How to call librsync anyway?

I'm trying to understand how to get librsync to work (ie. make signature/make delta/patch) under CENTOS 5.8 x86_64 standard (before I eventually try to compile it under windows), but since I'm mainly a Windows/Delphi guy, and given the lack of…
TheDude
  • 2,815
  • 2
  • 41
  • 88
0
votes
1 answer

rdiff python module

Is there a python module that has the functionality for computing rdiff signatures and delta differencing? I need to perform these operations on a cross-platform application so I'll need something that will bundle into py2exe, py2app etc. I've done…
GP89
  • 6,016
  • 3
  • 29
  • 57
0
votes
1 answer

List files that satisfies Rsync Filter

Given a rsync filter file that looks something like this, is there a way to list all files in the directory that satisfy the filter? + /var/lib/hello/samba/* - /var/lib/world/sdfs/ - /var/lib/world/staging/ - /var/lib/world/uml/ +…
1
2