mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-20 13:53:19 +01: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:
@@ -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`)
|
||||
|
||||
Reference in New Issue
Block a user