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)
|
+ limit: 20 (number, optional)
|
||||||
Maximum number of users to return
|
Maximum number of users to return
|
||||||
|
|
||||||
|
+ Default: Infinity
|
||||||
|
|
||||||
+ offset (number, optional)
|
+ offset (number, optional)
|
||||||
Offset into result-set (useful for pagination)
|
Offset into result-set (useful for pagination)
|
||||||
|
|
||||||
|
|
|
@ -6,13 +6,13 @@ cd $(dirname $0)
|
||||||
DB_NAME="cc-test"
|
DB_NAME="cc-test"
|
||||||
|
|
||||||
# array of available collection names
|
# 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[@]}"
|
for i in "${col[@]}"
|
||||||
do
|
do
|
||||||
if [ "$1" == "import" ]
|
if [ "$1" == "import" ]
|
||||||
then
|
then
|
||||||
mongoimport --db ${DB_NAME} --collection $i --drop --file ${i}.json
|
mongoimport --quiet --db ${DB_NAME} --collection $i --drop --file ${i}.json
|
||||||
else
|
else
|
||||||
echo -e "$(date "+%Y-%m-%dT%T.%3N%z")\tTable: ${i}"
|
echo -e "$(date "+%Y-%m-%dT%T.%3N%z")\tTable: ${i}"
|
||||||
mongoexport --db ${DB_NAME} --collection $i --out ${i}.json;
|
mongoexport --db ${DB_NAME} --collection $i --out ${i}.json;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
|
|
||||||
# array of available collection names
|
# 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" ]
|
if [ -z "$1" ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue