From 58b598058a1f7b27a6c7c70c231b819cd2463ec9 Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 2 Jan 2026 02:13:17 +0100 Subject: [PATCH] Enable backup module functionality --- VERSION | 2 +- app/backups/templates/index.html | 22 ---------------------- app/core/config.py | 1 + 3 files changed, 2 insertions(+), 23 deletions(-) diff --git a/VERSION b/VERSION index f552f58..94bfeb1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.3.70 \ No newline at end of file +1.3.71 \ No newline at end of file diff --git a/app/backups/templates/index.html b/app/backups/templates/index.html index e005944..d5cbd90 100644 --- a/app/backups/templates/index.html +++ b/app/backups/templates/index.html @@ -380,12 +380,6 @@ // Load backups list async function loadBackups() { - // TODO: Implement /api/v1/backups/jobs endpoint - console.warn('⚠️ Backups API ikke implementeret endnu'); - document.getElementById('backups-table').innerHTML = 'Backup API er ikke implementeret endnu'; - return; - - /* Disabled until API implemented: try { const response = await fetch('/api/v1/backups/jobs?limit=50'); const backups = await response.json(); @@ -439,10 +433,6 @@ // Load storage stats async function loadStorageStats() { - // TODO: Implement /api/v1/backups/storage endpoint - return; - - /* Disabled until API implemented: try { const response = await fetch('/api/v1/backups/storage'); const stats = await response.json(); @@ -474,10 +464,6 @@ // Load notifications async function loadNotifications() { - // TODO: Implement /api/v1/backups/notifications endpoint - return; - - /* Disabled until API implemented: try { const response = await fetch('/api/v1/backups/notifications?limit=10'); const notifications = await response.json(); @@ -507,10 +493,6 @@ // Load scheduler status async function loadSchedulerStatus() { - // TODO: Implement /api/v1/backups/scheduler/status endpoint - return; - - /* Disabled until API implemented: try { const response = await fetch('/api/v1/backups/scheduler/status'); const status = await response.json(); @@ -547,10 +529,6 @@ event.preventDefault(); const resultDiv = document.getElementById('backup-result'); - resultDiv.innerHTML = '
Backup API er ikke implementeret endnu
'; - return; - - /* Disabled until API implemented: const type = document.getElementById('backup-type').value; const isMonthly = document.getElementById('is-monthly').checked; diff --git a/app/core/config.py b/app/core/config.py index d4d4662..4b2fcbc 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -101,6 +101,7 @@ class Settings(BaseSettings): SIMPLYCRM_API_KEY: str = "" # Backup System Configuration + BACKUP_ENABLED: bool = True BACKUP_STORAGE_PATH: str = "/app/backups" BACKUP_DRY_RUN: bool = False BACKUP_RETENTION_DAYS: int = 30