backups: add ui for filename encryption

This commit is contained in:
Girish Ramakrishnan
2022-06-27 09:02:44 -07:00
parent ade64923f1
commit 878c5c9977
11 changed files with 238 additions and 46 deletions
+5 -1
View File
@@ -36,6 +36,7 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
$scope.format = 'tgz';
$scope.advancedVisible = false;
$scope.password = '';
$scope.encryptedFilenames = true;
$scope.encrypted = false; // only used if a backup config contains that flag
$scope.setupToken = '';
$scope.skipDnsSetup = false;
@@ -206,7 +207,10 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
provider: $scope.provider,
format: $scope.format,
};
if ($scope.password) backupConfig.password = $scope.password;
if ($scope.password) {
backupConfig.password = $scope.password;
backupConfig.encryptedFilenames = $scope.encryptedFilenames;
}
// only set provider specific fields, this will clear them in the db
if ($scope.s3like(backupConfig.provider)) {