Jenkins + Minio + Prometheus + Grafana v1

This commit is contained in:
2026-09-01 13:42:14 +00:00
commit 05a197b0d0
21 changed files with 2256 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
set -euo pipefail
SRC_DIR=/opt/server/data
BACKUP_DIR=/opt/server/backups/jenkins_home
KEEP=4
mkdir -p "$BACKUP_DIR"
STAMP=$(date +%Y%m%d)
tar czf "$BACKUP_DIR/jenkins_home_$STAMP.tar.gz" -C "$SRC_DIR" jenkins_home
ls -1t "$BACKUP_DIR"/jenkins_home_*.tar.gz | tail -n +$((KEEP + 1)) | xargs -r rm --