Lade Backup-Container mit DEV-Umgebungsdatei

This commit is contained in:
2026-08-12 16:08:45 +02:00
parent 1662d880d6
commit 4bad445cc9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14,4 +14,4 @@ services:
- "--no-privileges" - "--no-privileges"
- "--file=/backup/current.dump" - "--file=/backup/current.dump"
volumes: volumes:
- ${BACKUP_DIR}:/backup - /volume1/naurua_db_backups/dev:/backup
+1 -1
View File
@@ -57,7 +57,7 @@ cleanup() { rm -f "${temporary_file}"; }
trap cleanup EXIT trap cleanup EXIT
export BACKUP_DIR export BACKUP_DIR
"${DOCKER_CMD[@]}" compose --file "${COMPOSE_FILE}" run --rm --no-deps -T backup "${DOCKER_CMD[@]}" compose --env-file "${ENV_FILE}" --file "${COMPOSE_FILE}" run --rm --no-deps -T backup
if [[ ! -s "${BACKUP_DIR}/current.dump" ]]; then if [[ ! -s "${BACKUP_DIR}/current.dump" ]]; then
echo "Backup failed: container dump file is empty." >&2 echo "Backup failed: container dump file is empty." >&2