diff options
author | Wayne Davison <wayned@samba.org> | 2007-03-05 17:08:00 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2007-03-05 17:08:00 +0000 |
commit | f41152d39396f0672a97268739c333537579404a (patch) | |
tree | de7d1dc56449ea66c32a8a9982bceecb079e9df2 /options.c | |
parent | d0c59b0e887971bcabaacf79d2b59a5a0faa1d12 (diff) | |
download | rsync-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |