diff options
author | Instrumental <jonathan.gathman@att.com> | 2018-10-08 11:27:18 -0500 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2018-10-08 11:28:00 -0500 |
commit | 94053613671f7456ea5114a8421d0e6868bdbba0 (patch) | |
tree | f81e1585e9b9e76dd74a0c8381926ed7b1c6e8be /auth/auth-cass/docker/backup.sh | |
parent | 49525303bc07064d60b3dde3056b2e9e8a379435 (diff) |
Artifacts to Bootstrap
Issue-ID: AAF-543
Change-Id: I95d11b11c21ddeb63e393528c2504af673d27a6f
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/auth-cass/docker/backup.sh')
-rw-r--r-- | auth/auth-cass/docker/backup.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/auth/auth-cass/docker/backup.sh b/auth/auth-cass/docker/backup.sh index 78a5e64d..b533c3ef 100644 --- a/auth/auth-cass/docker/backup.sh +++ b/auth/auth-cass/docker/backup.sh @@ -1,4 +1,11 @@ -#mkdir -p $DIR -docker container exec -it aaf_cass bash -e '/opt/app/aaf/cass_init/pull.sh' -docker container cp aaf_cass:/opt/app/aaf/cass_init/dat.gz "dat$(date +%Y%m%d).gz" +#!/bin/bash + +# Pull in AAF Env Variables from AAF install +if [ -e ../../docker/d.props ]; then + . ../../docker/d.props +fi +DOCKER=${DOCKER:-docker} + +$DOCKER container exec -it aaf_cass bash -e '/opt/app/aaf/cass_init/pull.sh' +$DOCKER container cp aaf_cass:/opt/app/aaf/cass_init/dat.gz "dat$(date +%Y%m%d).gz" |