feat(backup): backup automatisé PostgreSQL + Alarik avec test de restauration (#180)

This commit is contained in:
Arnaud Dartois authored and Arnaud Dartois committed 2026-08-30 10:09:25 +02:00
1 parent e49b0d73aa
commit 881ad48066
3 files changed
+270 -2

No files matched your search

+2 -2
View File
@@ -115,8 +115,8 @@ if [[ "$IS_DRY_RUN" != "1" ]]; then
if [[ "$CLIENT" == "mc" ]]; then
STATS=$(mc ls "heimdall-backup/${S3_BUCKET}/${BACKUP_PREFIX}/${WEEK_TAG}/" --recursive --summarize 2>/dev/null | tail -2)
OBJECT_COUNT=$(echo "$STATATS" | grep -oP 'Objects: \K\d+' || echo "0")
TOTAL_SIZE=$(echo "$STATATS" | grep -oP 'Size: \K\d+' || echo "0")
OBJECT_COUNT=$(echo "$STATS" | grep -oP 'Objects: \K\d+' || echo "0")
TOTAL_SIZE=$(echo "$STATS" | grep -oP 'Size: \K\d+' || echo "0")
fi
MANIFEST="Heimdall Alarik Backup Manifest