Package: etckeeper
Version: 1.18.2
Severity: wishlist
Great tool! I've been running etckeeper (git revision control
backend) on a Ubuntu-server system for several years. After some
time, apt upgrades were taking LONG time, this was due to etckeeper
actions; but root cause was git tree bloat. Dug into it, and
uncovered there were huge files consistently changed by webmin :(;
had to wipe it from index/history
(http://rtyley.github.io/bfg-repo-cleaner/).
This is what's included by default already for webmin package:
/etc$ sudo grep webmin .gitignore
webmin/fsdump/*.status
webmin/webmin/oscache
I propose the following additions because system-status/history
are beyond the scope defined by etckeeper:
webmin/system-status/history/*
The files here are LARGE and change REALTIME cause significant bloat/slowdown in
git repository.
/etc# du -hc --max-depth=1 | grep M
120M ./.git
94M ./webmin <---- ouch
225M .
225M total
/etc# du -hc --max-depth=1 webmin | grep M
21M webmin/sysstats <--- this contains user
modules installed, large, but rarely changing
72M webmin/system-status <--- this contains the HISTORY
directory which is always changing causing bloat
94M webmin
94M total
/etc/webmin/system-status/history# ls -alh
total 72M
drwx------ 2 root root 4.0K Jan 21 21:28 .
drwx--x--x 3 root bin 4.0K Jan 21 21:28 ..
-rw-r--r-- 1 root root 3.4M Jan 21 21:28 bin
-rw-r--r-- 1 root root 3.3M Jan 21 21:28 bout
-rw-r--r-- 1 root root 3.5M Jan 21 21:28 cpuidle
-rw-r--r-- 1 root root 3.2M Jan 21 21:28 cpuio
-rw-r--r-- 1 root root 3.3M Jan 21 21:28 cpukernel
-rw-r--r-- 1 root root 3.3M Jan 21 21:28 cpuuser
-rw-r--r-- 1 root root 6.4M Jan 21 21:28 diskused
-rw-r--r-- 1 root root 6.1M Jan 21 21:28 drivetemp
-rw-r--r-- 1 root root 4.0M Jan 21 21:28 load
-rw-r--r-- 1 root root 4.0M Jan 21 21:28 load15
-rw-r--r-- 1 root root 4.0M Jan 21 21:28 load5
-rw-r--r-- 1 root root 104 Jan 21 21:28 maxes
-rw-r--r-- 1 root root 5.4M Jan 21 21:28 memused
-rw-r--r-- 1 root root 106 Jan 21 21:28 netcounts
-rw-r--r-- 1 root root 3.9M Jan 21 21:28 procs
-rw-r--r-- 1 root root 6.7M Jan 21 21:28 rx
-rw-r--r-- 1 root root 5.0M Jan 21 21:28 swapused
-rw-r--r-- 1 root root 6.7M Jan 21 21:28 tx
date
Sun Jan 21 21:28:10 EST 2018