clean up (Forum tag)http://www.turnkeylinux.org/forum/term/862/0/feed
enetckeeper has HUGE .git repo, how to remove???http://www.turnkeylinux.org/forum/support/20111111/etckeeper-has-huge-git-repo-how-remove
<p>
Hi all,</p>
<p>
<u><strong>Background</strong></u> (skip this bit if you want)<br />
As many of you would be aware, TKL appliances include etckeeper (configured to use git) by default. That&#39;s all well and good, but I have a little bit of an issue... On an old Tracks appliance that I run at home to try to keep myself productive and keep track of what I need to do and what I&#39;ve done. Overall I&#39;m very happy with it. I originally just set it up as a test server (over a year ago now - running under KVM). Seeing as I&#39;ve been using it (and found a neat Android app that syncs with it called Shuffle) I decided that I would now run it under OVZ (much more efficient virtualisation) and keep it. I&#39;ve converted the ISO to an OVZ and about to set it up. I figured the easiest way to transfer all my stuff across would be via TKLBAM. All good to this point. Out of curiosity I ran a TKLBAM simulation and to my surprise found the backup would include 550+MB!?!? WTF!?! I know I&#39;ve been busy this last year but that seems ridiculous! So after some investigation with <em>ncdu</em> (thanks Liraz for this awesome tool!) I discovered that most of the backup comes from /etc/.git this is where etckeeper stores all it&#39;s info. So I decided that I could get rid of that... Enter my problem...</p>
<p>
<u><strong>The Problem:</strong></u><br />
So the /etc/.git folder (etckeeper&#39;s git repo) contains ~550MB of data. How to cull this down a bit? I have tried a number of different approaches (including but not limited to <em>apt-get remove --purge etckeeper &amp;&amp; apt-get install etckeeper</em>) but as soon as I reinitialise etckeeper (<em>etckeeper init</em>) most of it comes back!?! (less about 5MB that seems to have dissapeared for good).</p>
<p>
I have searched high and low online, both for etckeeper specifically and also for git in general and can&#39;t see an easy way to make the data gone (it just comes back as soon as etckeeper is reinitialised). Does anybody have any pointers for me?? The only permanent solution seems to be to not initialise etckeeper (ie not use it). I&#39;d rather not do that (because I like having all my config settings backed up) but for now that is what I&#39;m going to do.</p>
<p>
IMO there needs to be an easy way to purge the etckeeper history and there just doesn&#39;t seem to be one. If I can&#39;t find an easy answer soon, I think I&#39;ll log this as a TKL bug (and an etckeeper one too).</p>http://www.turnkeylinux.org/forum/support/20111111/etckeeper-has-huge-git-repo-how-remove#commentsSupportclean upetckeepergitFri, 11 Nov 2011 01:35:33 +0000Jeremy2876 at http://www.turnkeylinux.org