Implement @appinteractive's suggestions

This:
https://github.com/Human-Connection/Human-Connection/pull/529#discussion_r280065855
This commit is contained in:
Robert Schäfer 2019-05-07 19:14:57 +02:00
parent 43ea3f56b4
commit b5d91cffef

View File

@ -19,7 +19,7 @@ for collection in "categories" "badges" "users" "contributions" "comments" "foll
do
mongoexport --db ${MONGODB_DATABASE} --host localhost -d ${MONGODB_DATABASE} --port 27018 --username ${MONGODB_USERNAME} --password ${MONGODB_PASSWORD} --authenticationDatabase ${MONGODB_AUTH_DB} --collection $collection --collection $collection --out "/tmp/mongo-export/$collection.json"
mkdir -p /tmp/mongo-export/splits/$collection/
split -l 500 /tmp/mongo-export/$collection.json /tmp/mongo-export/splits/$collection/
split -l 1000 -a 3 /tmp/mongo-export/$collection.json /tmp/mongo-export/splits/$collection/
done
ssh -S my-ctrl-socket -O check -l ${SSH_USERNAME} ${SSH_HOST}