mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-18 17:59:37 +00:00
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:
parent
8498cab842
commit
331d7a41ab
5 changed files with 149 additions and 22 deletions
|
|
@ -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`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue