Verifying understanding of backup-dir vs compare-dest

Matt McCutchen hashproduct+rsync at gmail.com
Wed Sep 12 23:30:07 GMT 2007


On 9/12/07, Suresh Govindachar <sgovindachar at yahoo.com> wrote:
>   Say one starts with creating an archive
>
>        rsync work -> archive
>
>   and periodically (below, i = 1 to N) does
>
>        rsync --backup-dir=a_<i>      work -> archive
>   and  rsync --compare-dest=archive  work -> b_<i>
>
>   Then suppose one wants to recover the work directory as it was at
>   time k.
>
>   Using the b_<i> directories, one would merely merge b_k with the
>   archive directory.
>
>   But using the a_<i> directories one would have to merge a_<j> with
>   archive starting with j=N and going down sequentially to j=k.
>
>   Is my understanding correct?

Yes, those procedures for recovery are correct.

Matt


More information about the rsync mailing list