.
All checks were successful
/ build-docker-image (push) Successful in 46s

This commit is contained in:
2025-09-21 17:02:35 +01:00
parent 4a2e5ba4dc
commit c965abb702
4 changed files with 11 additions and 4 deletions

2
.gitignore vendored
View File

@@ -1,2 +1,4 @@
**.local.**
local/**
.env

View File

@@ -188,6 +188,11 @@ BUILD=""
# uncomment do force build
#BUILD="--build"
if [ ! -f ./docker-compose.dev.local.yaml ]; then
touch ./docker-compose.dev.local.yaml
EOF
fi
docker compose \
--project-name borg-backup-dev \
-f docker-compose.dev.yaml \

View File

@@ -11,8 +11,8 @@ services:
- BORG_REPO="${BORG_REPO}"
- BORG_RSH="${BORG_REPO}"
- BORG_PASSPHRASE="${BORG_PASSPHRASE}"
- MODE=SHELL # Valid modes are: BORG, SCRIPT, SHELL, default is BORG
command: "ls -lah"
- MODE=SCRIPT # Valid modes are: BORG, SCRIPT, SHELL, default is BORG
#command: "ls -lah"
configs:
# - source: backup_script
# target: /app/backup-scripts/run

View File

@@ -16,8 +16,8 @@ case "$MODE" in
cat /app/README.md
exit 1
fi
echo "Executing: backup script with arguments: "\${@:1\"."
cd /app/backup-scripts && bash backup \"${@:1}"
echo "Executing: backup script with arguments: ${@:1} "
cd /app/backup-scripts && bash backup "${@:1}"
;;
SHELL)