Revert "Revert "New setting to make backup dirs optional per default""

This reverts commit 5629a644b2.
This commit is contained in:
Martin 2019-04-19 12:27:57 +02:00
parent 2e9963ebe8
commit 5df651aa70
2 changed files with 4 additions and 1 deletions

View File

@ -373,8 +373,9 @@ void RestoreFiles::operator()()
return;
}
bool backup_dirs_optional;
IndexThread::readPatterns(tgroup, clientsubname, exclude_dirs,
include_dirs);
include_dirs, backup_dirs_optional);
std::map<std::string, IFsFile*> open_files;
if (restore_flags & restore_flag_open_all_files_first)

View File

@ -3519,6 +3519,8 @@ std::string IndexThread::sanitizePattern(const std::string &p)
void IndexThread::readPatterns(int index_group, std::string index_clientsubname, std::vector<std::string>& exclude_dirs, std::vector<SIndexInclude>& include_dirs)
{
backup_dirs_optional = false;
std::string exclude_pattern_key = "exclude_files";
std::string include_pattern_key = "include_files";