comparison scripts/backup-container.sh @ 293:95d7d70f34a5 production v2.4.0

flow: Merged <release> 'v2.4.0' to <master> ('production').
author smith@nwoca.org
date Thu, 27 Dec 2018 00:06:14 +0000
parents 4cc087cde1d0
children d78b45c28205
comparison
equal deleted inserted replaced
285:cd2e677afa4e 293:95d7d70f34a5
13 13
14 cd $projectDir 14 cd $projectDir
15 15
16 source "${SSDT_SCRIPTS:-$(dirname "${BASH_SOURCE[0]}")}/.functions.sh" 16 source "${SSDT_SCRIPTS:-$(dirname "${BASH_SOURCE[0]}")}/.functions.sh"
17 17
18 project=$(composeGetProject)
19
18 set -o pipefail 20 set -o pipefail
19 mkdir -p ./backup 21 mkdir -p ./backup
20 backupFile=./backup/${container}.$(date +%Y-%m-%d-%H-%M-%S).backup 22 backupFile=./backup/${project}-${container}.$(date +%Y-%m-%d-%H-%M-%S).backup
21 23
22 echo "preparing to backup ${container} on current project at ${projectDir}:" 24 echo "preparing to backup ${container} on current project at ${projectDir}:"
23 echo " " 25 echo " "
24 26
25 project=$(composeGetProject) 27
26 28
27 if [ "$project" == "" ]; then 29 if [ "$project" == "" ]; then
28 echo "no project available" 30 echo "no project available"
29 exit 1 31 exit 1
30 fi 32 fi