Mercurial > public > ssdt-docker
diff scripts/backup-container-docker.sh @ 395:b3909bd1a2b6
INV-198 fix output of backup-container-docker.sh and create restore-inventory.sh script
author | Matt Calmes <calmes@ssdt-ohio.org> |
---|---|
date | Wed, 27 Oct 2021 22:36:34 -0400 |
parents | 56498d910235 |
children | 886a7dc796b8 |
line wrap: on
line diff
--- a/scripts/backup-container-docker.sh Wed Oct 27 15:21:57 2021 -0400 +++ b/scripts/backup-container-docker.sh Wed Oct 27 22:36:34 2021 -0400 @@ -31,7 +31,7 @@ fi ##Take out the extra space from IRN returned from db. IRN=`echo $IRN | sed -e 's/^[[:space:]]*//'` - backupFile=./backup/${IRN}${entityId}-${container}.$(date +%Y-%m-%d-%H-%M-%S).backup + backupFile=./backup/${IRN}${entityId}-inventory-db.$(date +%Y-%m-%d-%H-%M-%S).backup echo "entityId is $entityId" echo "container name is $containerName" fi @@ -42,7 +42,7 @@ } entityId=$(prop 'entityId' | tr -d '"') containerName="$entityId-workflows-db" - backupFile=./backup/${entityId}-${container}.$(date +%Y-%m-%d-%H-%M-%S).backup + backupFile=./backup/${entityId}-workflows-db.$(date +%Y-%m-%d-%H-%M-%S).backup echo "entityId is $entityId" echo "container name is $containerName" fi @@ -67,5 +67,5 @@ gzip ${backupFile} - echo "completed backup of $container to ${backupFile}" + echo "completed backup of $container to ${backupFile}.gz" fi