Skip to content

Instantly share code, notes, and snippets.

@mariomadproductions
Last active November 14, 2025 13:32
Show Gist options
  • Select an option

  • Save mariomadproductions/a1c4335f5a770f38a924c657e5929797 to your computer and use it in GitHub Desktop.

Select an option

Save mariomadproductions/a1c4335f5a770f38a924c657e5929797 to your computer and use it in GitHub Desktop.
rdiff guide

rdiff guide

rdiff is a utility that is part of librsync library.

Install

Windows:

  1. Download here1.
  2. Extract the zip
  3. Open the extract folder
  4. Open cmd in the extracted folder by typing cmd in the File Explorer address bar and pressing enter

Linux/Mac:
rdiff should be available via package manager, and you can use it via the terminal

Usage

Person who wants the new file

  1. Run rdiff signature OLD_FILE OLD_FILE_SIGNATURE.sig (replace OLD_FILE as appropriate)
  2. Send SIGNATURE.sig to the person who has the new file

Person who has the new file

  1. Run rdiff delta OLD_FILE_SIGNATURE.sig NEW_FILE OLD_FILE_TO_NEW_FILE_DIFFERENCE.delta (replace NEW_FILE as appropriate)
  2. Send OLD_FILE_TO_NEW_FILE_DIFFERENCE.delta to the person who wants the new file

Footnotes

  1. Build is from here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment