mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-12 08:41:46 -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
|