SysOps: voice-agy-webbuilder-backup — 2026-06-23 10:04 UTC

This commit is contained in:
sysops
2026-06-23 10:04:23 +00:00
parent 3bf15c4850
commit 26fe76afdd
165 changed files with 47427 additions and 1264 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
# Push volledige foodlinkk-command-center naar Gitea (VM106).
set -euo pipefail
HOST="${DEPLOY_HOST:-aissa@10.4.7.18}"
REASON="${1:-manual-backup}"
echo "=== Rsync naar VM106 ==="
rsync -az --exclude '.git' --exclude '__pycache__' --exclude 'node_modules' \
"$(dirname "$0")/../" "${HOST}:~/foodlinkk-command-center/"
echo "=== Gitea sync via tools-api ==="
ssh "$HOST" "docker exec foodlinkk_tools_api python -c \"
from app.connectors.gitea_repo_sync import run_gitea_repo_sync
import json
print(json.dumps(run_gitea_repo_sync('${REASON}'), indent=2))
\""
echo "=== Klaar — Gitea: http://10.4.7.18:3001/aissa/foodlinkk-command-center ==="