disconnected synchronization (mostly unidirectional)

Wayne Davison wayned at samba.org
Mon Mar 12 18:20:57 GMT 2007


On Mon, Mar 12, 2007 at 11:12:58AM +0100, Konrad Karl wrote:
> Given this capability together with the batch mode it should be
> possible to do what I want.

Not really, because rsync still needs to ask for the checksums to see
what has changed.  If you're fine sending whole files, it would be easy
to code something up in perl that just compared size+mtime to a list and
copied each whole file somewhere.  For instance, there's a perl script
in the support dir, file-attr-restore, that uses a "find ... -ls" file
to restore attributes in a hierarchy.  That could be adapted to do what
you want, especially if the find output was customized to output the
modified time value in a full-resolution format:

    find . -printf '%s %T@ %p\n'

..wayne..


More information about the rsync mailing list