Commit f52c16b2 authored by Johannes Zellner's avatar Johannes Zellner

Ensure encryption property on backup config always exists

parent 4faf880a
......@@ -109,7 +109,7 @@ function injectPrivateFields(newConfig, currentConfig) {
delete newConfig.password;
}
}
newConfig.encryption = currentConfig.encryption;
newConfig.encryption = currentConfig.encryption || null;
if (newConfig.provider === currentConfig.provider) api(newConfig.provider).injectPrivateFields(newConfig, currentConfig);
}
......
......@@ -144,6 +144,7 @@ let gDefaults = (function () {
provider: 'filesystem',
backupFolder: '/var/backups',
format: 'tgz',
encryption: null,
retentionSecs: 2 * 24 * 60 * 60, // 2 days
intervalSecs: 24 * 60 * 60 // ~1 day
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment