[Trent W. Buck 2008-05-31]
> After running etckeeper for a few months, I noticed that /etc/.git
> constituted four fifths of my /etc tree.  Running git-gc significantly
> improved this ratio.  I wish etckeeper did this automatically via a
> cron.monthly or cron.weekly script.

[Joey Hess 2008-05-31]
> Modern versions of git should automatically run git-gc once the number
> of loose objects reaches a certian point, controlled by gc.auto. So a
> cron job should only be necessary if you want to avoid git-gc being run
> during a commit. (Which is sometimes annoying as it can be slow.. but
> probably not for the small stuff in /etc.)

I ran into this problem at work, where we use etckeeper, and the file
systems with /etc/ ran out of inodes on serveral machines.  After making
some room (removed old kernels), I ran 'git gc' in /etc/ and 90% of the
spent inodes came back.  Are you sure the default is to automatically run
gc when needed?

If not, I would prefer gc done regularly, for example once per week.
Perhaps a cron job in the etckeeper package is a good idea?
-- 
Happy hacking
Petter Reinholdtsen

Reply via email to