--delete

Matt McCutchen matt at mattmccutchen.net
Fri Oct 3 01:30:37 GMT 2008


On Thu, 2008-10-02 at 21:28 -0400, Franck Yelles wrote:
> On 2-Oct-08, at 21:01, Matt McCutchen <matt at mattmccutchen.net> wrote:
> > On Thu, 2008-10-02 at 20:59 -0400, Franck Y wrote:
> >> Is there anyway to move the deleted files/folder to another place ?
> >> I have googled a little bit but nothing comes out.
> >
> > It's the --backup-dir option.  If you want to treat deleted files
> > differently from overwritten ones, use this patch:
> >
> > http://rsync.samba.org/ftp/rsync/patches/backup-dir-dels.diff
> 
> Thanks matt.
> Will it create the same directory tree (structure) ?

Yes.  Rsync will move each deleted or overwritten destination file to
the same path under the backup dir as it was at under the destination,
creating ancestor directories as necessary.

Matt



More information about the rsync mailing list