Instrumental | 12f7f46 | 2018-04-23 15:43:47 -0500 | [diff] [blame] | 1 | cd /opt/app/cass_backup |
2 | DATA="ns role perm ns_attrib user_role cred cert x509 delegate approval approved future notify artifact health history" | ||||
3 | PWD=cassandra | ||||
4 | CQLSH="cqlsh -u cassandra -k authz -p $PWD" | ||||
5 | for T in $DATA ; do | ||||
6 | echo "Creating $T.dat" | ||||
7 | $CQLSH -e "COPY authz.$T TO '$T.dat' WITH DELIMITER='|'" | ||||
8 | done |