Add:Ability to edit backup location path on backups page #2973

- Added api endpoint PATCH /api/backups/path
- Cleanup backup page UI for mobile screens
This commit is contained in:
advplyr 2024-06-19 17:14:37 -05:00
parent 8498cab842
commit 331d7a41ab
5 changed files with 149 additions and 22 deletions

View file

@ -51,6 +51,16 @@ class BackupManager {
this.scheduleCron()
}
/**
* Reload backups after updating backup path
*/
async reload() {
Logger.info(`[BackupManager] Reloading backups with backup path "${this.backupPath}"`)
this.backups = []
await this.loadBackups()
this.updateCronSchedule()
}
scheduleCron() {
if (!this.backupSchedule) {
Logger.info(`[BackupManager] Auto Backups are disabled`)