fix sleep
build (backupdb) TeamCity build finished Details

This commit is contained in:
Sergey Paramoshkin 2025-09-25 10:43:54 +03:00
parent b116401130
commit 9b32782de2
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ KEEP_BACKUPS="${KEEP_BACKUPS:-7}"
S3_BUCKET="${S3_BUCKET:-selectel:backup_db}"
S3_PATH="${S3_PATH:-dot}"
ENVIRONMENT="${ENVIRONMENT:-prod}"
SLEEP=${SLEEP:-43200}
while true; do
echo "[$(date)] Starting database backup process..."
@ -85,7 +85,7 @@ while true; do
echo "[$(date)] Current local backups:"
ls -lah ${BACKUP_DIR}/*.sql.gz 2>/dev/null || echo "No backups found"
echo "[$(date)] Next backup will run in 12 hours..."
echo "[$(date)] Next backup will run in $((${SLEEP} / 60 / 60 )) hours..."
echo "========================================="
# Sleep for 12 hours (43200 seconds)