Support cifs seal option for backups

This commit is contained in:
Johannes Zellner
2022-01-10 14:28:25 +01:00
parent 5e046a26e9
commit 93982bae7b
2 changed files with 11 additions and 1 deletions

View File

@@ -481,6 +481,7 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
username: '',
password: '',
diskPath: '',
seal: false,
user: '',
port: 22,
privateKey: ''
@@ -507,7 +508,7 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
$scope.configureBackup.syncConcurrency = $scope.configureBackup.provider === 's3' ? 20 : 10;
$scope.configureBackup.copyConcurrency = $scope.configureBackup.provider === 's3' ? 500 : 10;
$scope.configureBackup.mountOptions = { host: '', remoteDir: '', username: '', password: '', diskPath: '', user: '', port: 22, privateKey: '' };
$scope.configureBackup.mountOptions = { host: '', remoteDir: '', username: '', password: '', diskPath: '', seal: false, user: '', port: 22, privateKey: '' };
},
show: function () {
@@ -564,6 +565,7 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
username: mountOptions.username || '',
password: mountOptions.password || '',
diskPath: mountOptions.diskPath || '',
seal: mountOptions.seal,
user: mountOptions.user || '',
port: mountOptions.port || 22,
privateKey: mountOptions.privateKey || ''
@@ -662,6 +664,7 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
if (backupConfig.provider === 'cifs') {
backupConfig.mountOptions.username = $scope.configureBackup.mountOptions.username;
backupConfig.mountOptions.password = $scope.configureBackup.mountOptions.password;
backupConfig.mountOptions.seal = $scope.configureBackup.mountOptions.seal;
} else if (backupConfig.provider === 'sshfs') {
backupConfig.mountOptions.user = $scope.configureBackup.mountOptions.user;
backupConfig.mountOptions.port = $scope.configureBackup.mountOptions.port;