summaryrefslogtreecommitdiffstats
path: root/dashboard/backup-db.sh
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2017-12-06 09:07:43 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2017-12-06 09:07:43 +0800
commit3f672f0e918c5c461008a7fc0e53e63b79083d34 (patch)
tree12bfc267788dff461cc6bb500ada150223f42ca2 /dashboard/backup-db.sh
parent41ff15069d96ea1040cb457b39f909967dabb8bc (diff)
remove deprecated dashboard code
dashboard is not used anymore, substitute by Bitergia dashboard Change-Id: Iccfd634d0d404d23b09d88454dab38425359a2b8 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'dashboard/backup-db.sh')
-rw-r--r--dashboard/backup-db.sh33
1 files changed, 0 insertions, 33 deletions
diff --git a/dashboard/backup-db.sh b/dashboard/backup-db.sh
deleted file mode 100644
index 35c3fbe..0000000
--- a/dashboard/backup-db.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash
-# SPDX-license-identifier: Apache-2.0
-##############################################################################
-# Copyright (c) 2016 Orange and others.
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-echo "Backup Test collection DB"
-now=$(date +"%m_%d_%Y_%H_%M_%S")
-echo $now
-echo " ------------- "
-TARGET_DIR=./$now
-TEST_RESULT_DB_BACKUP="test_collection_db."$now".tar.gz"
-
-echo "Create Directory for backup"
-mkdir -p $TARGET_DIR
-
-echo "Export results"
-mongoexport --db test_results_collection -c results --out $TARGET_DIR/backup-results.json
-echo "Export test cases"
-mongoexport --db test_results_collection -c testcases --out $TARGET_DIR/backup-cases.json
-echo "Export projects"
-mongoexport --db test_results_collection -c projects --out $TARGET_DIR/backup-projects.json
-echo "Export pods"
-mongoexport --db test_results_collection -c pods --out $TARGET_DIR/backup-pod.json
-
-echo "Create tar.gz"
-#tar -cvzf $TEST_RESULT_DB_BACKUP $TARGET_DIR
-
-echo "Delete temp directory"
-#rm -Rf $TARGET_DIR