logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rdiff - compute and apply signature-based file differences

Author

       Martin Pool <mbp@sourcefrog.net>

       The original rsync algorithm was discovered by Andrew Tridgell.

       rdiff development has been supported by Linuxcare, Inc and VA Linux Systems.

                                                     $Date$                                             rdiff(1)

Description

       In  every case where a filename must be specified, - may be used instead to mean either standard input or
       standard output as appropriate.  Be aware that if you do this, you'll need to terminate your options with
       -- or rdiff will think you are passing it an empty option.

Name

       rdiff - compute and apply signature-based file differences

Return Value

       0 for successful completion, 1 for environmental problems (file not found,  invalid  options,  IO  error,
       etc), 2 for a corrupt file and 3 for an internal error or unhandled situation in librsync or rdiff.

See Also

librsync(3)

Synopsys

rdiff [options] signatureold-filesignature-filerdiff [options] deltasignature-filenew-filedelta-filerdiff [options] patchold-filedelta-filenew-file

Usage

       You  can  use  rdiff  to  update  files,  much like rsync does.  However, unlike rsync, rdiff puts you in
       control.  There are three steps to updating a file:  signature,  delta,  and  patch.  Use  the  signature
       subcommand  to  generate a small signature-file from the old-file. Use the delta subcommand to generate a
       small delta-file from the signature-file to the new-file. Use the patch subcommand to  apply  the  delta-file to the old-file to regenerate the new-file.

See Also