Lade Backup-Container mit DEV-Umgebungsdatei
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user