Mercurial > public > ssdt-docker
comparison scripts/backup-container.sh @ 274:7723b18b112b hotfix/v2.2.1
add debuging logic for omeresa
author | smith@nwoca.org |
---|---|
date | Wed, 14 Nov 2018 22:05:21 +0000 |
parents | fcee81af7e71 |
children | 7710677f147c |
comparison
equal
deleted
inserted
replaced
273:f937ee9e427a | 274:7723b18b112b |
---|---|
16 source "${SSDT_SCRIPTS:-$(dirname "${BASH_SOURCE[0]}")}/.functions.sh" | 16 source "${SSDT_SCRIPTS:-$(dirname "${BASH_SOURCE[0]}")}/.functions.sh" |
17 | 17 |
18 set -o pipefail | 18 set -o pipefail |
19 mkdir -p ./backup | 19 mkdir -p ./backup |
20 backupFile=./backup/${container}.$(date +%Y-%m-%d-%H-%M-%S).backup | 20 backupFile=./backup/${container}.$(date +%Y-%m-%d-%H-%M-%S).backup |
21 | |
22 echo "preparing to backup ${container} on current project at ${projectDir}:" | |
23 docker-compose ps | |
24 echo " " | |
21 | 25 |
22 project=$(composeGetProject) | 26 project=$(composeGetProject) |
23 | 27 |
24 if [ "$project" == "" ]; then | 28 if [ "$project" == "" ]; then |
25 echo "no project available" | 29 echo "no project available" |