taiko-web-db/clean.sh

8 lines
394 B
Bash
Raw Normal View History

2024-04-10 00:54:08 +02:00
#!/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