summaryrefslogtreecommitdiffstats
path: root/auth/auth-cass/docker/cbackup.sh
diff options
context:
space:
mode:
authorYoussef-Chawki <youssef.chawki@orange.com>2018-08-20 12:18:37 +0200
committerYoussef-Chawki <youssef.chawki@orange.com>2018-08-20 12:22:40 +0200
commit5c121c479c7ba35b14a3029533160d4dbbd1cdf7 (patch)
tree6ba78e5b08cfeb569c1fae7feca3f39528ba3d37 /auth/auth-cass/docker/cbackup.sh
parentb96e59383a20b356d0d4c83dab0303c58b189f53 (diff)
Introduction information ReadTheDoc
Added introductory information on the AAF project Change-Id: I80edbdbc2029f31a5e93925ac15fd3af6bbbb19b Signed-off-by: Youssef-Chawki <youssef.chawki@orange.com> Issue-ID: AAF-426
Diffstat (limited to 'auth/auth-cass/docker/cbackup.sh')
-rw-r--r--auth/auth-cass/docker/cbackup.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/auth/auth-cass/docker/cbackup.sh b/auth/auth-cass/docker/cbackup.sh
new file mode 100644
index 00000000..9c91d0c6
--- /dev/null
+++ b/auth/auth-cass/docker/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