#!/usr/bin/env bash # ============================================ # Projet : API-KA # Fichier : scripts/run_daily_backup.sh # Node : m3u96b # Author : Simon-Pierre Boucher # Contact : contact@spboucher.ai # Date : 2026-08-16 # ============================================ # Backup quotidien horodaté des 5 services + purge des backups expirés (rétention 90 j). set -euo pipefail PROJECT_DIR="$(cd "$(dirname "$0")/.." && pwd)" cd "$PROJECT_DIR" PYTHON="./venv/bin/python" [ -x "$PYTHON" ] || PYTHON="python3" "$PYTHON" -m src.utils.backup --cleanup echo "✅ Backup quotidien terminé ($(date '+%Y-%m-%d %H:%M:%S'))."