[ILUG] rsync to generate diffs?

From: Conor Daly (conor.daly at domain met.ie)
Date: Mon 13 Aug 2001 - 15:03:11 IST


Interesting thought here...

I want to use rsync to generate diffs between two files on two boxes and
then upload the diffs only to a web server. Something like:

rsync foo:foofile bar:foofile > foofile.rdiff

which doesn't work. Of course, I could use diff and patch but I'd be
dealing with more than one file. What I'd like to be able to do is to push
the rsync *stream* into a single file and then push that file back into
rsync at the eventual (offline) destination. I could create a tar, rsync -b
that, create a diff with the backup (-b switch) and patch the diff back into
a tar at the other end.

There's gotta be a better way!

Conor

-- 
Conor Daly 
Met Eireann, Glasnevin Hill, Dublin 9, Ireland
Ph +353 1 8064276 Fax +353 1 8064275
------------------------------------
  1:48pm  up 4 days, 22:51, 13 users,  load average: 0.00, 0.00, 0.00


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:11:35 GMT