Code Review
/
aaf
/
authz.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Create Helm Instantiation
[aaf/authz.git]
/
auth
/
auth-cass
/
cass_init
/
pull.sh
1
#!/bin/bash
2
#
3
# Pull data from Cassandra into ".dat" files, and "gzip" them
4
#
5
DIR=/opt/app/aaf/cass_init
6
cd $DIR
7
mkdir -p dats
8
cd dats
9
TABLES="$(cqlsh -e "use authz; describe tables")"
10
for T in $TABLES ; do
11
cqlsh -e "use authz; COPY $T TO '$T.dat' WITH DELIMITER='|';"
12
done
13
cd $DIR
14
tar -cvzf dat.gz dats/*.dat
15
rm -Rf dats
16