add sshfs bits to restore and backup UI

This commit is contained in:
Girish Ramakrishnan
2021-05-27 15:31:37 -07:00
parent 218450880e
commit 841c9bc261
5 changed files with 61 additions and 5 deletions
+8 -1
View File
@@ -47,7 +47,10 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
remoteDir: '',
username: '',
password: '',
diskPath: ''
diskPath: '',
user: '',
port: 22,
privateKey: ''
};
$scope.sysinfo = {
@@ -261,6 +264,10 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
if (backupConfig.provider === 'cifs') {
backupConfig.mountOptions.username = $scope.mountOptions.username;
backupConfig.mountOptions.password = $scope.mountOptions.password;
} else if (backupConfig.provider === 'sshfs') {
backupConfig.mountOptions.user = $scope.mountOptions.user;
backupConfig.mountOptions.port = $scope.mountOptions.port;
backupConfig.mountOptions.privateKey = $scope.mountOptions.privateKey;
}
} else if (backupConfig.provider === 'ext4') {
backupConfig.mountOptions.diskPath = $scope.diskPath;