CHANGE docker-compose to use the portainer stack definition

This commit is contained in:
2026-05-06 11:05:34 +02:00
parent 57c075eb25
commit e57eb7277f
2 changed files with 50 additions and 25 deletions

View File

@@ -8,7 +8,7 @@ while true; do
FILENAME="${BACKUP_DIR}/strichliste_${TIMESTAMP}.sql.gz"
echo "[$(date)] Starting backup..."
mariadb-dump -h db -u strichliste -pstrichliste strichliste | gzip > "${FILENAME}"
mariadb-dump -h db -u strichliste -pstrichliste --single-transaction --skip-lock-tables strichliste | gzip > "${FILENAME}"
if [ $? -eq 0 ]; then
echo "[$(date)] Backup saved: ${FILENAME}"