Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- USERNAME="..."
- PASS="..."
- LIMIT="$1"
- rm -rf export.zip
- declare -a coll=("credits" "duels" "histories" "inventories" "reservations" "rounds" "shops" "skins" "transactions" "transfers" "users")
- for i in "${coll[@]}"
- do
- echo "Exporting ${i}"
- $(mongoexport --username "$USERNAME" --password "$PASS" --db 500 --collection "$i" --limit "$LIMIT" --out "$i.json")
- done
- zip -r export.zip *.json
- rm -rf *.json
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement