--- embedaddon/rsync/rsync.1 2012/02/17 15:09:30 1.1.1.1 +++ embedaddon/rsync/rsync.1 2013/07/22 00:20:21 1.1.1.1.2.1 @@ -478,6 +478,7 @@ to the detailed description below for a complete descr \-\-modify\-window=NUM compare mod\-times with reduced accuracy \-T, \-\-temp\-dir=DIR create temporary files in directory DIR \-y, \-\-fuzzy find similar file for basis if no dest file + \-\-detect\-renamed try to find renamed files to speed the xfer \-\-compare\-dest=DIR also compare received files relative to DIR \-\-copy\-dest=DIR ... and include copies of unchanged files \-\-link\-dest=DIR hardlink to files in DIR when unchanged @@ -1819,6 +1820,22 @@ found, rsync uses the fuzzy basis file to try to speed Note that the use of the \fB\-\-delete\fP option might get rid of any potential fuzzy\-match files, so either use \fB\-\-delete\-after\fP or specify some filename exclusions if you need to prevent this. +.IP +.IP "\fB\-\-detect\-renamed\fP" +With this option, for each new source file +(call it \fIsrc/S\fP), rsync looks for a file \fIdest/D\fP anywhere in the +destination that passes the quick check with \fIsrc/S\fP. If such a \fIdest/D\fP +is found, rsync uses it as an alternate basis for transferring \fIS\fP. The +idea is that if \fIsrc/S\fP was renamed from \fIsrc/D\fP (as opposed to \fIsrc/S\fP +passing the quick check with \fIdest/D\fP by coincidence), the delta\-transfer +algorithm will find that all the data matches between \fIsrc/S\fP and \fIdest/D\fP, +and the transfer will be really fast. +.IP +By default, alternate\-basis files are hard\-linked into a directory named +\(dq\&.~tmp~\(dq\& in each file\(cq\&s destination directory, but if you\(cq\&ve specified +the \fB\-\-partial\-dir\fP option, that directory will be used instead. These +potential alternate\-basis files will be removed as the transfer progresses. +This option conflicts with \fB\-\-inplace\fP and \fB\-\-append\fP. .IP .IP "\fB\-\-compare\-dest=DIR\fP" This option instructs rsync to use \fIDIR\fP on