add vehicle kill log table export for backup/dredd

pull/32/head
Florian Hartwich 2018-03-28 14:58:48 +02:00
parent 7f1704387f
commit d41c8706fd
3 changed files with 5 additions and 3 deletions

View File

@ -16,6 +16,8 @@ Get single army member information
+ limit: 20 (number, optional)
Maximum number of users to return
+ Default: Infinity
+ offset (number, optional)
Offset into result-set (useful for pagination)

View File

@ -6,13 +6,13 @@ cd $(dirname $0)
DB_NAME="cc-test"
# array of available collection names
col=(app_user awarding campaign decoration logBudget logFlag logKill logPoints logRespawn logRevive logTransport player promotion rank squad user war)
col=(app_user awarding campaign decoration logBudget logFlag logKill logPoints logRespawn logRevive logTransport logVehicle player promotion rank squad user war)
for i in "${col[@]}"
do
if [ "$1" == "import" ]
then
mongoimport --db ${DB_NAME} --collection $i --drop --file ${i}.json
mongoimport --quiet --db ${DB_NAME} --collection $i --drop --file ${i}.json
else
echo -e "$(date "+%Y-%m-%dT%T.%3N%z")\tTable: ${i}"
mongoexport --db ${DB_NAME} --collection $i --out ${i}.json;

View File

@ -4,7 +4,7 @@
cd $(dirname $0)
# array of available collection names
col=(app_user awarding campaign decoration logBudget logFlag logKill logPoints logRespawn logRevive logTransport player promotion rank squad user war )
col=(app_user awarding campaign decoration logBudget logFlag logKill logPoints logRespawn logRevive logTransport logVehicle player promotion rank squad user war )
if [ -z "$1" ]
then