On Mon, Feb 27, 2012 at 5:30 PM, Mark Knecht <markkne...@gmail.com> wrote:
> On Mon, Feb 27, 2012 at 3:18 PM, Paul Hartman
> <paul.hartman+gen...@gmail.com> wrote:
>> On Mon, Feb 27, 2012 at 4:49 PM, Nikos Chantziaras <rea...@arcor.de> wrote:
>>> On 28/02/12 00:41, Mark Knecht wrote:
>>>>
>>>> Are there any tools that will:
>>>>
>>>> 1) Ensure that for every installed packages there is a corresponding
>>>> tbz2 file in /usr/portage/packages?
>>>>
>>>> 2) Remove any older versions in /usr/portage/packages prior to me
>>>> running a backup?
>>>
>>>
>>> I think app-portage/gentoolkit can help with its "eclean" tool
>>> (specifically, "eclean-pkg").
>>>
>>> "man eclean" should get you started.
>>
>> And as an example of savings... I run eclean once in a while, but not
>> automated. I just ran it and got these results:
>>
>> [   14.8 G ] Total space from 1673 files were freed in the distfiles 
>> directory
>>
>> I guess I should use it more frequently. ;)
>>
>
> 15GB is a nice clean up!
>
> I don't think I'd want to run it automatically, at least not often. If
> it automatically deleted things that work in favor of newly built but
> untested packages that would defeat the purpose in my mind.
>
> As basically nothing but a home user I'm trying after 12 years to
> piece together some sort of a backup strategy here, including how to
> do a restore if a drive died, etc. I'll ask some questions about that
> later, but likely it should be it's own thread.
>
> Cheers,
> Mark

You can probably just exclude /usr/portage from your backup entirely,
since it'll be restored with an emerge --sync (or webrsync) and any
distfiles can be downloaded again if they are needed.

Reply via email to