Mahendra Raghuwanshi | afb1e2a | 2018-05-03 12:15:03 +0000 | [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 |