working on snapshots
All checks were successful
Build and Push Docker Image / build (push) Successful in 22s
All checks were successful
Build and Push Docker Image / build (push) Successful in 22s
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
# Author: Calahil Studios
|
# Author: Calahil Studios
|
||||||
|
|
||||||
# === CONFIGURATION ===
|
# === CONFIGURATION ===
|
||||||
BACKUP_DIR="/backups/postgres"
|
BACKUP_DIR="/backups/postgres_dumps"
|
||||||
INTERVAL_HOURS="${INTERVAL_HOURS:-24}" # Default to 24 hours if not set
|
INTERVAL_HOURS="${INTERVAL_HOURS:-24}" # Default to 24 hours if not set
|
||||||
RETENTION_DAYS="${RETENTION_DAYS:-7}" # Keep 7 days of backups
|
RETENTION_DAYS="${RETENTION_DAYS:-7}" # Keep 7 days of backups
|
||||||
|
|
||||||
@@ -14,7 +14,6 @@ KNOWN_IMAGES=$(
|
|||||||
postgres:17.0-alpine
|
postgres:17.0-alpine
|
||||||
postgres:17
|
postgres:17
|
||||||
postgres
|
postgres
|
||||||
lscr.io/linuxserver/postgres
|
|
||||||
postgres:14.0-alpine
|
postgres:14.0-alpine
|
||||||
ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
|
ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
|
||||||
EOF
|
EOF
|
||||||
@@ -65,6 +64,8 @@ while true; do
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
btrfs subvolume snapshot -r /mnt/backups/prodesk /mnt/backups/prodesk-$(date +%F)
|
||||||
|
|
||||||
echo "[INFO] Backup cycle complete."
|
echo "[INFO] Backup cycle complete."
|
||||||
echo "[INFO] Sleeping for ${INTERVAL_HOURS}h..."
|
echo "[INFO] Sleeping for ${INTERVAL_HOURS}h..."
|
||||||
sleep "${INTERVAL_HOURS}h"
|
sleep "${INTERVAL_HOURS}h"
|
||||||
|
|||||||
Reference in New Issue
Block a user