Rdiff tool usage

Source: Internet
Author: User

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

Use the Rsync algorithm to copy files.

Signature

Rdiff [Options] signature input Signature

Rdiff signature generates a signature file from an input file. The signature can later be used to generate a Delta relative to the old file.
Delta

Rdiff [Options] Delta signature newfile Delta

Rdiff Delta reads in a Delta describing a basis file. It then calculates and writes a Delta that transforms the basis into the new file.
Patch

Rdiff [Options] patch basis Delta output

Basic usage:
Scenario: If you want to transfer the A1 file on host a to the B1 file on host B (A1 and B1 are similar), follow these steps:
1. B First generates a signature file of the B1 file,
Command:
Rdiff-V Signature B1 b1.sig
2. host a calculates the differences between files A1 and b1.sig and becomes b1.del
Rdiff-V Delta b1.sig A1 b1.del
3. Host B re-creates the new file newa1 Based on the b1.del file and B1, consistent with A1
Rdiff-V patch B1 b1.del newa1

From: http://blog.csdn.net/moxuansheng/article/details/6696733

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.