Make gnu coreutils happy with the db import script.
This commit is contained in:
parent
d26daf1dc0
commit
89b9ffae20
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
DIR=`mktemp -dt coco`
|
DIR=`mktemp -dt cocoXXXXXXXXXX`
|
||||||
curl http://analytics.codecombat.com:8080/dump.tar.gz | tar -xC $DIR
|
curl http://analytics.codecombat.com:8080/dump.tar.gz | tar -xzC $DIR
|
||||||
|
|
||||||
mongoexport --db coco --collection users --out $DIR/users.json
|
mongoexport --db coco --collection users --out $DIR/users.json
|
||||||
mongorestore --drop --batchSize 100 $DIR/dump
|
mongorestore --drop --batchSize 100 $DIR/dump
|
||||||
|
|
Reference in a new issue