Enable backup module functionality
This commit is contained in:
parent
9fb149c02a
commit
58b598058a
@ -380,12 +380,6 @@
|
|||||||
|
|
||||||
// Load backups list
|
// Load backups list
|
||||||
async function loadBackups() {
|
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 {
|
try {
|
||||||
const response = await fetch('/api/v1/backups/jobs?limit=50');
|
const response = await fetch('/api/v1/backups/jobs?limit=50');
|
||||||
const backups = await response.json();
|
const backups = await response.json();
|
||||||
@ -439,10 +433,6 @@
|
|||||||
|
|
||||||
// Load storage stats
|
// Load storage stats
|
||||||
async function loadStorageStats() {
|
async function loadStorageStats() {
|
||||||
// TODO: Implement /api/v1/backups/storage endpoint
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* Disabled until API implemented:
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch('/api/v1/backups/storage');
|
const response = await fetch('/api/v1/backups/storage');
|
||||||
const stats = await response.json();
|
const stats = await response.json();
|
||||||
@ -474,10 +464,6 @@
|
|||||||
|
|
||||||
// Load notifications
|
// Load notifications
|
||||||
async function loadNotifications() {
|
async function loadNotifications() {
|
||||||
// TODO: Implement /api/v1/backups/notifications endpoint
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* Disabled until API implemented:
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch('/api/v1/backups/notifications?limit=10');
|
const response = await fetch('/api/v1/backups/notifications?limit=10');
|
||||||
const notifications = await response.json();
|
const notifications = await response.json();
|
||||||
@ -507,10 +493,6 @@
|
|||||||
|
|
||||||
// Load scheduler status
|
// Load scheduler status
|
||||||
async function loadSchedulerStatus() {
|
async function loadSchedulerStatus() {
|
||||||
// TODO: Implement /api/v1/backups/scheduler/status endpoint
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* Disabled until API implemented:
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch('/api/v1/backups/scheduler/status');
|
const response = await fetch('/api/v1/backups/scheduler/status');
|
||||||
const status = await response.json();
|
const status = await response.json();
|
||||||
@ -547,10 +529,6 @@
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
const resultDiv = document.getElementById('backup-result');
|
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 type = document.getElementById('backup-type').value;
|
||||||
const isMonthly = document.getElementById('is-monthly').checked;
|
const isMonthly = document.getElementById('is-monthly').checked;
|
||||||
|
|
||||||
|
|||||||
@ -101,6 +101,7 @@ class Settings(BaseSettings):
|
|||||||
SIMPLYCRM_API_KEY: str = ""
|
SIMPLYCRM_API_KEY: str = ""
|
||||||
|
|
||||||
# Backup System Configuration
|
# Backup System Configuration
|
||||||
|
BACKUP_ENABLED: bool = True
|
||||||
BACKUP_STORAGE_PATH: str = "/app/backups"
|
BACKUP_STORAGE_PATH: str = "/app/backups"
|
||||||
BACKUP_DRY_RUN: bool = False
|
BACKUP_DRY_RUN: bool = False
|
||||||
BACKUP_RETENTION_DAYS: int = 30
|
BACKUP_RETENTION_DAYS: int = 30
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user