Possibility of merging rsync and tar
wayned at samba.org
Mon Sep 12 18:52:18 GMT 2005
On Sun, Sep 11, 2005 at 06:21:13PM -0400, Matt McCutchen wrote:
> Since both tar and rsync read and write filesystems in great detail,
> they have many analogous sections of source code.
An interesting idea. Rsync 2.6.6 now has the --only-write-batch option
which can allow it to function like "tar c" when a copy is made into an
empty directory. That means that it can be thought of as a superset of
tar's basic functionality (though it does not have all of tar's options
nor is it compatible with tar).
Someone may want to look into creating some library functions that tar
and rsync could share. But having one program do both jobs may be
problematical if backward-compatibility with older tar versions was
desired. However, someone designing a next-generation file-transfer
tool my well want to make it easy to also do tar's job, and more
advanced archive operations, as you suggested.
More information about the rsync