0

In my project, I have to keep some files synchronized between two computers. Both rdiff and librsync seem to do the same thing. Can anyone please point me to some differences so I can choose which tool would suit me best?

Links to the docs: http://librsync.sourcefrog.net/doc/librsync.html

http://librsync.sourcefrog.net/doc/rdiff.html

http://linux.die.net/man/3/librsync

http://linux.die.net/man/1/rdiff

There maybe more docs available. These are the ones that I read.

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
aste123
  • 121
  • 5
  • This is about using computers, not computer *science*. Your question may be ontopic on [unix.SE]. – Raphael Feb 18 '15 at 12:08

2 Answers2

1

librsync is the complete package which ships rdiff command.

To use rdiff in your system you need to have librsync package installed.

bluefoggy
  • 662
  • 4
  • 9
1

The best for your needs will be rsync, which will synchronize files from one computer to another (if you want two way sync, use unison).

You can also use tools that build around librsync, such as rdiff-backup or duplicty.

The answer to your question is that librsync is a library implementing rsync algorithm, and is used by rsync tool but also by the rdiff tool, which is somewhat lower level, i.e. you could implement rsync tool using rdiff.

Darek
  • 541
  • 2
  • 11