From: SerenaFeng Date: Fri, 2 Sep 2016 08:09:19 +0000 (+0800) Subject: correct backup-db.sh in kibana repo to keep consistent with testapi X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=b9f749d155051b90d0fefde2f5c0daff1970fcd2;p=releng-testresults.git correct backup-db.sh in kibana repo to keep consistent with testapi We change some interfaces in testapi, but this file doesn't change with that JIRA: FUNCTEST-455 Change-Id: I105a82557244481bbdf9885fc166ebe975b050ea Signed-off-by: SerenaFeng --- diff --git a/scripts/backup-db.sh b/scripts/backup-db.sh index aa36aa3..35c3fbe 100644 --- a/scripts/backup-db.sh +++ b/scripts/backup-db.sh @@ -18,16 +18,16 @@ echo "Create Directory for backup" mkdir -p $TARGET_DIR echo "Export results" -mongoexport -db test_results_collection -c test_results --out $TARGET_DIR/results.json +mongoexport --db test_results_collection -c results --out $TARGET_DIR/backup-results.json echo "Export test cases" -mongoexport --db test_results_collection -c test_cases --out $TARGET_DIR/backup-cases.json +mongoexport --db test_results_collection -c testcases --out $TARGET_DIR/backup-cases.json echo "Export projects" -mongoexport --db test_results_collection -c test_projects --out $TARGET_DIR/backup-projects.json +mongoexport --db test_results_collection -c projects --out $TARGET_DIR/backup-projects.json echo "Export pods" -mongoexport --db test_results_collection -c pod --out $TARGET_DIR/backup-pod.json +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 +#tar -cvzf $TEST_RESULT_DB_BACKUP $TARGET_DIR echo "Delete temp directory" -rm -Rf $TARGET_DIR +#rm -Rf $TARGET_DIR