summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2007-03-05 17:08:00 +0000
committerWayne Davison <wayned@samba.org>2007-03-05 17:08:00 +0000
commitf41152d39396f0672a97268739c333537579404a (patch)
treede7d1dc56449ea66c32a8a9982bceecb079e9df2 /options.c
parentd0c59b0e887971bcabaacf79d2b59a5a0faa1d12 (diff)
downloadrsync-f41152d39396f0672a97268739c333537579404a.tar.gz
rsync-f41152d39396f0672a97268739c333537579404a.tar.bz2
rsync-f41152d39396f0672a97268739c333537579404a.zip
Decided that we don't really want the rule that preserves the
backup-suffix files to be perishable.
Diffstat (limited to 'options.c')
-rw-r--r--options.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/options.c b/options.c
index 4017f813..97e50b86 100644
--- a/options.c
+++ b/options.c
@@ -1287,6 +1287,10 @@ int parse_arguments(int *argc, const char ***argv, int frommain)
snprintf(err_buf, sizeof err_buf,
"--suffix cannot be a null string without --backup-dir\n");
return 0;
+ } else if (make_backups && delete_mode && !delete_excluded && !am_server) {
+ snprintf(backup_dir_buf, sizeof backup_dir_buf,
+ "P *%s", backup_suffix);
+ parse_rule(&filter_list, backup_dir_buf, 0, 0);
}
if (make_backups && !backup_dir)
omit_dir_times = 1;