X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=auth%2Fsample%2Fbackup%2Fcbackup.sh;fp=auth%2Fsample%2Fbackup%2Fcbackup.sh;h=9c91d0c67002bf78fd4baec597600d7d4b3c5056;hb=12f7f46efd897a01ebe7894d0f26f95a6c8e2672;hp=0000000000000000000000000000000000000000;hpb=0d04b7513ab8f5c3bd9967fad9772688113fe437;p=aaf%2Fauthz.git diff --git a/auth/sample/backup/cbackup.sh b/auth/sample/backup/cbackup.sh new file mode 100644 index 00000000..9c91d0c6 --- /dev/null +++ b/auth/sample/backup/cbackup.sh @@ -0,0 +1,8 @@ +cd /opt/app/cass_backup +DATA="ns role perm ns_attrib user_role cred cert x509 delegate approval approved future notify artifact health history" +PWD=cassandra +CQLSH="cqlsh -u cassandra -k authz -p $PWD" +for T in $DATA ; do + echo "Creating $T.dat" + $CQLSH -e "COPY authz.$T TO '$T.dat' WITH DELIMITER='|'" +done