Skip to content

Commit

Permalink
Change path of .env
Browse files Browse the repository at this point in the history
  • Loading branch information
ptruessel committed Oct 21, 2024
1 parent 6219e67 commit 9dc664c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions config/backup/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,11 @@
set -a

# Load the .env file
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
source "$PROJECT_ROOT/.env"
source ../.env

# Deactivates the automatic export of variables
set +a

# Checks whether the /backup folder exists and creates it if required
if [ ! -d "/backup" ]; then
mkdir -p /backup
fi

# Backup database
docker compose -f compose-backup.yml run db_backup
scp -i ${SSH_KEY_PATH} /backup/database.tar.gz ${SERVER_USER}@${SERVER_IP}:${REMOTE_BACKUP_PATH}
Expand Down

0 comments on commit 9dc664c

Please sign in to comment.