Mercurial > public > ssdt-docker
comparison scripts/backup-container.sh @ 284:d41836720ce4 production v2.3.0
flow: Merged <release> 'v2.3.0' to <master> ('production').
author | smith@nwoca.org |
---|---|
date | Thu, 15 Nov 2018 20:10:48 +0000 |
parents | 7710677f147c |
children | 4cc087cde1d0 |
comparison
equal
deleted
inserted
replaced
277:5599ce0c5a50 | 284:d41836720ce4 |
---|---|
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 | 21 |
22 echo "preparing to backup ${container} on current project at ${projectDir}:" | 22 echo "preparing to backup ${container} on current project at ${projectDir}:" |
23 docker-compose ps | |
24 echo " " | 23 echo " " |
25 | 24 |
26 project=$(composeGetProject) | 25 project=$(composeGetProject) |
27 | 26 |
28 if [ "$project" == "" ]; then | 27 if [ "$project" == "" ]; then |