taiko-web-db/clean.sh
2024-04-09 22:54:08 +00:00

8 lines
394 B
Bash

#!/bin/bash
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