Hi there,
I'm using etckeeper 1.18.17 on Ubuntu kinetic (22.10).
Every few days (roughly 4-8 days, the exact frequency varies, probably depending on how much I change in /etc) I get a mail from Anacron that has the following content:
/etc/cron.daily/etckeeper:
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
I guess the automatic garbage collection of git is executed, which prints this unimportant bit of information to stdout, thus triggering an e-mail by Anacron.
Since there is no actual problem, we should suppress this output, so that no mail will be sent. One idea would be to just run 'git gc --auto' on a daily basis, I guess?
Cheers, Patrick.
etckeeper commit
is what the cron job runs. That does not rungit gc
.I don't think a git commit triggers a gc either, normmally.
Have you perhaps added a hook or something that causes the git gc?
The git-gc man pages say
So
git
itself runsgit gc
every timeetckeeper
commits anything, unlessgc.auto
is set to0
in the config.This behaviour normaly is helpful, but the additional are mails not. Since they are sent by
anacron
, an easy solution is to disable the cron job. You can use the systemd timer instead, but you have to set up extra monitoring if you still want to know if etckeeper's daily commits fail.