taiko-web-db/pull.sh
2024-04-06 11:30:25 +00:00

9 lines
381 B
Bash

#!/bin/bash
docker exec -i taiko-mongo mongoexport --db taiko --collection users --out /dev/stdout | sort -n > users.json
docker exec -i taiko-mongo mongoexport --db taiko --collection songs --out /dev/stdout | sort -n > songs.json
docker exec -i taiko-mongo mongoexport --db taiko --collection scores --out /dev/stdout | sort -n > scores.json
git add -A
git commit -m "$(date)"