diff --git a/src/js/restore.js b/src/js/restore.js index e14e2d1ca..e7bad6e01 100644 --- a/src/js/restore.js +++ b/src/js/restore.js @@ -261,11 +261,11 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien return; } } else if ($scope.mountlike(backupConfig.provider)) { - backupConfig.mountPoint = $scope.mountPoint; backupConfig.prefix = $scope.prefix; backupConfig.mountOptions = {}; if (backupConfig.provider === 'cifs' || backupConfig.provider === 'sshfs' || backupConfig.provider === 'nfs') { + backupConfig.mountPoint = '/mnt/cloudronbackup'; // harcoded for ease of use backupConfig.mountOptions.host = $scope.mountOptions.host; backupConfig.mountOptions.remoteDir = $scope.mountOptions.remoteDir; @@ -278,9 +278,12 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien backupConfig.mountOptions.privateKey = $scope.mountOptions.privateKey; } } else if (backupConfig.provider === 'ext4') { + backupConfig.mountPoint = '/mnt/cloudronbackup'; // harcoded for ease of use backupConfig.mountOptions.diskPath = $scope.diskPath; + } else if (backupConfig.provider === 'mountpoint') { + backupConfig.mountPoint = $scope.mountPoint; } - } else if (backupConfig.provider === 'filesystem' || backupConfig.provider === 'mountpoint') { + } else if (backupConfig.provider === 'filesystem') { backupConfig.backupFolder = $scope.configureBackup.backupFolder; } diff --git a/src/restore.html b/src/restore.html index a98a2f943..ea95ba485 100644 --- a/src/restore.html +++ b/src/restore.html @@ -93,20 +93,20 @@ - -
+ +
- +
- -
+ +
- -
+ +
@@ -172,7 +172,7 @@
-
+
diff --git a/src/views/backups.js b/src/views/backups.js index ad2691fc1..7a86783ea 100644 --- a/src/views/backups.js +++ b/src/views/backups.js @@ -610,7 +610,7 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat backupConfig.mountOptions = {}; if (backupConfig.provider === 'cifs' || backupConfig.provider === 'sshfs' || backupConfig.provider === 'nfs') { - backupConfig.mountPoint = '/mnt/cloudronbackups'; // harcoded for ease of use + backupConfig.mountPoint = '/mnt/cloudronbackup'; // harcoded for ease of use backupConfig.mountOptions.host = $scope.configureBackup.mountOptions.host; backupConfig.mountOptions.remoteDir = $scope.configureBackup.mountOptions.remoteDir; @@ -623,7 +623,7 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat backupConfig.mountOptions.privateKey = $scope.configureBackup.mountOptions.privateKey; } } else if (backupConfig.provider === 'ext4') { - backupConfig.mountPoint = '/mnt/cloudronbackups'; // harcoded for ease of use + backupConfig.mountPoint = '/mnt/cloudronbackup'; // harcoded for ease of use backupConfig.mountOptions.diskPath = $scope.configureBackup.mountOptions.diskPath; } else if (backupConfig.provider === 'mountpoint') { backupConfig.mountPoint = $scope.configureBackup.mountPoint;