lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] /etc/etckeeper/.git became enormous


From: Greg Chicares
Subject: [lmi] /etc/etckeeper/.git became enormous
Date: Tue, 13 Sep 2022 15:50:43 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0

It seems that etckeeper might never trigger garbage collection.
On a corporate server:

du -sh /etc/.git/objects/
11G     /etc/.git/objects/

git gc

du -sh /etc/.git/objects/
44M     /etc/.git/objects/

A tiny 11G file shouldn't matter in 2022, but this server mounts
various parts of the filesystem on distinct partitions.

I created a script to automate this, following the advice here:

https://www.turnkeylinux.org/forum/support/20111111/etckeeper-has-huge-git-repo-how-remove

#cat /etc/etckeeper/post-install.d/99git-gc
#!/bin/sh
exec git gc


reply via email to

[Prev in Thread] Current Thread [Next in Thread]