unison for windows

Matt McCutchen matt at mattmccutchen.net
Mon Jun 2 14:53:47 GMT 2008


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/rsync/attachments/20080602/961d5801/attachment.bin


More information about the rsync mailing list