Add a way to see the backup location

This commit is contained in:
mfcar 2023-09-20 22:33:58 +01:00
parent 9519f6418d
commit bfa87a2131
No known key found for this signature in database
5 changed files with 30 additions and 1 deletions

View file

@ -134,6 +134,23 @@ export default {
this.enableBackups = !!this.newServerSettings.backupSchedule
this.maxBackupSize = this.newServerSettings.maxBackupSize || 1
this.cronExpression = this.newServerSettings.backupSchedule || '30 1 * * *'
this.loadBackupLocation()
},
loadBackupLocation() {
this.processing = true
this.$axios
.$get('/api/backups/location')
.then((data) => {
this.backupLocation = data.backupLocation
})
.catch((error) => {
console.error('Failed to load backup location', error)
this.$toast.error('Failed to load backup location')
})
.finally(() => {
this.processing = false
})
}
},
mounted() {

View file

@ -188,6 +188,7 @@
"LabelBackToUser": "Back to User",
"LabelBackupsEnableAutomaticBackups": "Enable automatic backups",
"LabelBackupsEnableAutomaticBackupsHelp": "Backups saved in /metadata/backups",
"LabelBackupLocation": "Backup Location",
"LabelBackupsMaxBackupSize": "Maximum backup size (in GB)",
"LabelBackupsMaxBackupSizeHelp": "As a safeguard against misconfiguration, backups will fail if they exceed the configured size.",
"LabelBackupsNumberToKeep": "Number of backups to keep",
@ -711,4 +712,4 @@
"ToastSocketFailedToConnect": "Socket failed to connect",
"ToastUserDeleteFailed": "Failed to delete user",
"ToastUserDeleteSuccess": "User deleted"
}
}