X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/06dba0173956fcdd508394f2dce59ec6b7b987f6..19036ed89c39695cd076135243d25c672db4db2c:/source-backup.diff diff --git a/source-backup.diff b/source-backup.diff index ee1e263..3cf3439 100644 --- a/source-backup.diff +++ b/source-backup.diff @@ -1,6 +1,5 @@ -This patch to rsync 2.6.9 adds a --source-backup option that backs up source -files removed due to --remove-source-files. In my limited testing, it seems -to work. +This patch adds a --source-backup option that backs up source files +removed due to --remove-source-files. To use this patch, run these commands for a successful build: @@ -65,7 +64,7 @@ To use this patch, run these commands for a successful build: +bf(--backup) but uses the same bf(--backup-dir) and bf(--suffix) settings, +if any. With bf(--backup-dir), each backup file is placed inside the backup +dir according to the source file's full path from the working directory -+(source argument path + file-list path); if you want files placed according ++(backup-dir + source argument path + file-list path); if you want files placed according +to the file-list path, you could either make appropriate symlinks or have the +sender "cd" into the source directory so that the source argument is just ".". +