2024-04-06 13:29:01 +02:00
|
|
|
#!/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
|
2024-04-06 13:30:25 +02:00
|
|
|
|
2024-04-09 12:59:51 +02:00
|
|
|
docker exec -i --user=git forgejo /bin/bash -c "cd /data/git/repositories/yuuki/taiko-mongo-realtime.git && git reflog expire --expire-unreachable=now --all"
|
|
|
|
docker exec -i --user=git forgejo /bin/bash -c "cd /data/git/repositories/yuuki/taiko-mongo-realtime.git && git gc --aggressive --prune=now"
|
|
|
|
|
|
|
|
git reflog expire --expire-unreachable=now --all
|
|
|
|
git gc --aggressive --prune=now
|
|
|
|
|
2024-04-06 13:47:43 +02:00
|
|
|
git add *.json
|
2024-04-06 14:04:17 +02:00
|
|
|
changed=$(git diff --name-only --cached | paste -s -d " ")
|
|
|
|
git commit --author="BOT <bot@example.com>" -m "$changed が更新されました"
|
2024-04-06 13:36:41 +02:00
|
|
|
git push origin main
|