mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Implement @appinteractive's suggestions
This: https://github.com/Human-Connection/Human-Connection/pull/529#discussion_r280065855
This commit is contained in:
parent
43ea3f56b4
commit
b5d91cffef
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user