Difference between revisions of "Rsync"

From Christoph's Personal Wiki
Jump to: navigation, search
(Moved old article here.)
 
m (+link)
Line 11: Line 11:
 
Unlike <tt>diff</tt>, the process of creating a delta file has two steps: first a signature file is created from file A, and then this (relatively small) signature and file B is used to create the delta file. Also unlike <tt>diff</tt>, <tt>rdiff</tt> works well with binary files.
 
Unlike <tt>diff</tt>, the process of creating a delta file has two steps: first a signature file is created from file A, and then this (relatively small) signature and file B is used to create the delta file. Also unlike <tt>diff</tt>, <tt>rdiff</tt> works well with binary files.
  
Using <tt>rdiff</tt>, a utility called '''rdiff-backup''' has been created, capable of maintaining a backup mirror of a file or directory over the network, on another server. rdiff-backup stores incremental <tt>rdiff</tt> deltas with the backup, with which it is possible to recreate any backup point.
+
Using <tt>rdiff</tt>, a utility called '''rdiff-backup''' has been created, capable of maintaining a backup mirror of a file or directory over the network, on another server. <tt>rdiff-backup</tt> stores incremental <tt>rdiff</tt> deltas with the backup, with which it is possible to recreate any backup point.
  
 
== External links ==
 
== External links ==
 +
* [http://en.wikipedia.org/wiki/Rsync Wikipedia article on '''rsync''']
 
* [http://rsync.samba.org rsync homepage]
 
* [http://rsync.samba.org rsync homepage]
 
* [http://everythinglinux.org/rsync/ A useful tutorial]
 
* [http://everythinglinux.org/rsync/ A useful tutorial]

Revision as of 23:20, 22 May 2006

rsync is a command line tool which synchronizes files and directories from one location to another while minimizing data transfer using delta encoding when appropriate. An important feature of rsync not found in most similar programs/protocols is that the mirroring takes place with only one transmission in each direction.

rsync can copy or display directory contents and copy files, optionally using compression and recursion.

rsync has the default TCP port of 873.

Variations

rdiff and rdiff-backup

There also exists a utility called rdiff, which uses the rsync algorithm to generate delta files with the difference from file A to file B (like the utility diff, but in a different delta format). The delta file can then be applied to file A, turning it into file B (similar to the patch utility).

Unlike diff, the process of creating a delta file has two steps: first a signature file is created from file A, and then this (relatively small) signature and file B is used to create the delta file. Also unlike diff, rdiff works well with binary files.

Using rdiff, a utility called rdiff-backup has been created, capable of maintaining a backup mirror of a file or directory over the network, on another server. rdiff-backup stores incremental rdiff deltas with the backup, with which it is possible to recreate any backup point.

External links