On Mon, 2008-06-02 at 18:06 +0530, Madan Kumar wrote:
> Hi All,
> I am posting this querry second time.
> What i need is--
> {Is there any command by which I can get only the updation of file ie
> only the incremental?.
> Suppose I have a text file say ss.txt of 3KB in size and I have taken
> the
> backup of this file. Now I am making the changes in to this
> file(ss.txt) by
> adding 1KB of data. Now I want this 1KB data (in to a new file) when I
> take the incremental.
> If you please provide me the command for that by using rsync? }
>
> Somebody gave me his precious advice for getting the objective, the
> person told me to use "unison" that also use rsync protocol.


Unison won't help you here; it's just a two-way synchronization tool, as
rsync is a one-way copying tool. If your goal is to make a series of
backups and represent small changes to large files in an efficient way,
then use rdiff-backup ( http://www.nongnu.org/rdiff-backup/ ) as Lasse
suggested. But if you want a forward delta that you can apply to an old
copy of the file later, then use one of these tools:

- "rsync --only-write-batch=FILE" writes an rsync batch file containing
a delta from the destination version to the source version of every file
in the run. You can apply the entire batch file later with "rsync
--read-batch=FILE". It's not trivial to split a batch file into
separate deltas, so you might wish to run rsync once per changed file.

- Rdiff works on one file at a time and produces a delta like those
found in rsync batch files. You invoke the "signature" and "delta"
steps to generate the delta and the "patch" step when you later wish to
apply the delta.

- "diff -u" gives you a pretty textual delta if the files are text.

´╗┐Matt

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAkhECXMACgkQC+xSYN/RlftQ8QCgsZYbFm1qGL8zHcSv124gqZG0
bgcAoLOPiDUkPrHh87HAD0qDd/4Kbn6v
=TXAm
-----END PGP SIGNATURE-----