backup option

Bob Proulx bob at proulx.com
Thu Aug 12 02:11:21 MDT 2010


hce wrote:
> I am using rsync to backup files. Is it possible to specify an option
> not to delete files from backup directory if the files are deleted
> from source? In that way, I can always keep something I may or may not
> need in the backup disk, but remove it from a work computer.

Perhaps you want the --backup --backup-dir=DIR options?

        -b, --backup                make backups (see --suffix & --backup-dir)
            --backup-dir=DIR        make backups into hierarchy based in DIR

Bob


More information about the rsync mailing list