summaryrefslogtreecommitdiffstats
path: root/auth/auth-cass/src/main/cql/pull.sh
diff options
context:
space:
mode:
Diffstat (limited to 'auth/auth-cass/src/main/cql/pull.sh')
-rw-r--r--auth/auth-cass/src/main/cql/pull.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/auth/auth-cass/src/main/cql/pull.sh b/auth/auth-cass/src/main/cql/pull.sh
index f4db573a..01fa52bf 100644
--- a/auth/auth-cass/src/main/cql/pull.sh
+++ b/auth/auth-cass/src/main/cql/pull.sh
@@ -1,5 +1,10 @@
-for T in x509 ns_attrib config cred user_role perm role artifact ns; do
+mkdir -p dats
+cd dats
+for T in ns ns_attrib cred user_role perm role config artifact ; do
cqlsh -e "use authz; COPY $T TO '$T.dat' WITH DELIMITER='|';"
done
-tar -cvzf dat.gz *.dat
+tar -cvzf ../dat.gz *.dat
+rm *.dat
+cd -
+rmdir dats