Enable backup module functionality

This commit is contained in:
Christian 2026-01-02 02:13:17 +01:00
parent 9fb149c02a
commit 58b598058a
3 changed files with 2 additions and 23 deletions

View File

@ -1 +1 @@
1.3.70
1.3.71

View File

@ -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 = '<tr><td colspan="8" class="text-center text-warning"><i class="bi bi-exclamation-triangle me-2"></i>Backup API er ikke implementeret endnu</td></tr>';
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 = '<div class="alert alert-warning"><i class="bi bi-exclamation-triangle me-2"></i>Backup API er ikke implementeret endnu</div>';
return;
/* Disabled until API implemented:
const type = document.getElementById('backup-type').value;
const isMonthly = document.getElementById('is-monthly').checked;

View File

@ -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