mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-18 11:32:25 -05:00
8 lines
300 B
Text
Executable file
8 lines
300 B
Text
Executable file
DIR=`mktemp -dt cocoXXXXXXXXXX`
|
|
curl http://analytics.codecombat.com:8080/dump.tar.gz | tar -xzC $DIR
|
|
|
|
mongoexport --db coco --collection users --out $DIR/users.json
|
|
mongorestore --drop --batchSize 100 $DIR/dump
|
|
mongoimport --db coco --upsert -c users $DIR/users.json
|
|
cat $DIR/users.json
|
|
rm -r $DIR
|