From c965abb70289aeeffae72aeb0c2b93c3c1c30a6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sun, 21 Sep 2025 17:02:35 +0100 Subject: [PATCH] . --- .gitignore | 2 ++ README.md | 5 +++++ docker-compose.dev.yaml | 4 ++-- docker/app/scripts/entrypoint.sh | 4 ++-- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 4afd74e..935f06a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ **.local.** +local/** .env + diff --git a/README.md b/README.md index cd99dbb..d2e8c15 100644 --- a/README.md +++ b/README.md @@ -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 \ diff --git a/docker-compose.dev.yaml b/docker-compose.dev.yaml index 43d4a71..1c5e1dd 100644 --- a/docker-compose.dev.yaml +++ b/docker-compose.dev.yaml @@ -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 diff --git a/docker/app/scripts/entrypoint.sh b/docker/app/scripts/entrypoint.sh index 7ba536c..3813f43 100755 --- a/docker/app/scripts/entrypoint.sh +++ b/docker/app/scripts/entrypoint.sh @@ -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)