backups: make filename encryption optional

This commit is contained in:
Girish Ramakrishnan
2022-06-26 09:28:21 -07:00
parent 2e5d89be6b
commit c9f7b9a8a6
5 changed files with 25 additions and 4 deletions

View File

@@ -455,7 +455,7 @@ async function setBackupConfig(backupConfig) {
}
// if any of these changes, we have to clear the cache
if ([ 'format', 'provider', 'prefix', 'bucket', 'region', 'endpoint', 'backupFolder', 'mountPoint', 'encryption' ].some(p => backupConfig[p] !== oldConfig[p])) {
if ([ 'format', 'provider', 'prefix', 'bucket', 'region', 'endpoint', 'backupFolder', 'mountPoint', 'encryption', 'encryptFilenames' ].some(p => backupConfig[p] !== oldConfig[p])) {
debug('setBackupConfig: clearing backup cache');
backups.cleanupCacheFilesSync();
}