summaryrefslogtreecommitdiffstats
path: root/auth/auth-cass/docker/backup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'auth/auth-cass/docker/backup.sh')
-rw-r--r--auth/auth-cass/docker/backup.sh13
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"