add vehicle kill log table export for backup/dredd
parent
7f1704387f
commit
d41c8706fd
|
@ -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)
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue