gitlab 16.7.17
최신의 gitlab은 @hashed 디렉터리 아래에 repository 파일들을 저장하는데 @hashed/aa/e0/aae0212...335965.git
이런식으로 생겼기 때문에 디렉터리 이름만 봐서는 어떤 repository인지 알 수 없다. 내부의 config 파일을 확인해봐야 한다.
for d in {gitlab-data-root}/repositories/@hashed/*/*/*; do
repository_name=`grep fullpath $d/config | cut -d'=' -f2`
echo $repository_name: `du -hs "$d" | cut -f1`
done | sort --reverse --human-numeric-sort --key=2
결과(크기 역순 출력):
projecta: 31G
projectb: 9.5G
...