SPB Git forge

spb/api-ka

Public

API-KA — plateforme centrale : collecte quotidienne des 8 services KA, historisation append-only et API publique sur www.api-ka.com

48commits 1branches 0releases
5.9 MBsize
maindefault branch
19 days agolast push
Python 60.9% HTML 21% TypeScript 7.3% JavaScript 5.2% CSS 4.8% Shell 0.8%
640 B · 22 lines shellscript
Raw Blame History
1#!/usr/bin/env bash2# ============================================3# Projet   : API-KA4# Fichier  : scripts/run_daily_backup.sh5# Node     : m3u96b6# Author   : Simon-Pierre Boucher7# Contact  : contact@spboucher.ai8# Date     : 2026-08-169# ============================================10# Backup quotidien horodaté des 5 services + purge des backups expirés (rétention 90 j).1112set -euo pipefail1314PROJECT_DIR="$(cd "$(dirname "$0")/.." && pwd)"15cd "$PROJECT_DIR"1617PYTHON="./venv/bin/python"18[ -x "$PYTHON" ] || PYTHON="python3"1920"$PYTHON" -m src.utils.backup --cleanup21echo "✅ Backup quotidien terminé ($(date '+%Y-%m-%d %H:%M:%S'))."22