From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-user+bounces-135661-garchives=archives.gentoo.org@lists.gentoo.org>) id 1S2BDB-0006g4-VM for garchives@archives.gentoo.org; Tue, 28 Feb 2012 00:46:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 330D8E0795; Tue, 28 Feb 2012 00:46:24 +0000 (UTC) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 26A5DE0795 for <gentoo-user@lists.gentoo.org>; Tue, 28 Feb 2012 00:45:16 +0000 (UTC) Received: by wibhi8 with SMTP id hi8so3620852wib.40 for <gentoo-user@lists.gentoo.org>; Mon, 27 Feb 2012 16:45:16 -0800 (PST) Received-SPF: pass (google.com: domain of markknecht@gmail.com designates 10.180.83.97 as permitted sender) client-ip=10.180.83.97; Authentication-Results: mr.google.com; spf=pass (google.com: domain of markknecht@gmail.com designates 10.180.83.97 as permitted sender) smtp.mail=markknecht@gmail.com; dkim=pass header.i=markknecht@gmail.com Received: from mr.google.com ([10.180.83.97]) by 10.180.83.97 with SMTP id p1mr32942995wiy.19.1330389916483 (num_hops = 1); Mon, 27 Feb 2012 16:45:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=qFhi28PfU6CQs4igUeEbGUmGVSa0UX1f+F3dX+W8h9g=; b=TAZ8kliCXkZO3I62aIN5c5HHlQESGssNqV2I6l+ayxh79ygLPvhxUBXt1b4a1iIehI OM2+f4WEZSyAQOEp48gd09UP/PZzvLpnysUpF5FaZiXBWCW0JfP1gu1Wz+IUZU7Dnfg8 2bvGBFYhQqNf/sQ01Ai2QJw3lhF/DT8vv1TIM= Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.180.83.97 with SMTP id p1mr26099623wiy.19.1330389916388; Mon, 27 Feb 2012 16:45:16 -0800 (PST) Received: by 10.223.4.154 with HTTP; Mon, 27 Feb 2012 16:45:16 -0800 (PST) In-Reply-To: <CAEH5T2M8r0piLEXU11d+2kAa975i2gW9mV8KgaVF9VtLxhkX0w@mail.gmail.com> References: <CAK2H+ee1-X1bAnBt1woGwcn4YQg3x8jr6j5EWCWOJoDnZt=uqg@mail.gmail.com> <jih1ai$ubp$1@dough.gmane.org> <CAEH5T2NTUOXrwYoWpe3w1_yaiiDa-UMWOw6zZGLoWG+T9ZSGhQ@mail.gmail.com> <CAK2H+ef1Jy+Gerv_zzP+og+YokUoturfTszHG=CgvWUXQ7-BWQ@mail.gmail.com> <CAEH5T2M8r0piLEXU11d+2kAa975i2gW9mV8KgaVF9VtLxhkX0w@mail.gmail.com> Date: Mon, 27 Feb 2012 16:45:16 -0800 Message-ID: <CAK2H+ec+cTqJozpVAkEQtbutKtd17eJDxnbt4b1873Uo1Wxpcw@mail.gmail.com> Subject: Re: [gentoo-user] Re: tools to clean up /usr/portage/packages? From: Mark Knecht <markknecht@gmail.com> To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 78bda755-fd0c-4e2a-99ab-419b6b484a5f X-Archives-Hash: 6d8eaaad49ec26ca559eaee15d05d59f On Mon, Feb 27, 2012 at 3:48 PM, Paul Hartman <paul.hartman+gentoo@gmail.com> wrote: > On Mon, Feb 27, 2012 at 5:30 PM, Mark Knecht <markknecht@gmail.com> wrote= : >> On Mon, Feb 27, 2012 at 3:18 PM, Paul Hartman >> <paul.hartman+gentoo@gmail.com> wrote: >>> On Mon, Feb 27, 2012 at 4:49 PM, Nikos Chantziaras <realnc@arcor.de> wr= ote: >>>> 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: >>> >>> [ =C2=A0 14.8 G ] Total space from 1673 files were freed in the distfil= es 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. > Agreed. My server has about 400GB to back up. Roughly 360GB is virtual machines which get backed up daily already so I have that handled. Of the other 40GB it seems that (excluding portage, /var and a few other things) I need to back up about 24GB which I think can be backed up live. I'm not really worried about restoring the exact state of the machine in one pass. This isn't a business, etc. I just want to get back fairly quickly to where I was before the presumed failure. I figure if I get: /home /boot /usr/src /etc /var/lib/portage and maybe one or two more, then a restore would hopefully be something like doing a quick install as per the Gentoo docs and then laying this stuff on top and doing an emerge -ke @world. Or at least that's what I'm trying to puzzle together. I'm planning on trying it with an additional hard drive as a test. I'll have to modify fstab as the main system is a 5 drive RAID6 monster and for testing I just want a single drive to verify that it works. QUESTION: As for ensuring that every package actually has a corresponding tbz2 file in the packages directory, would emerge -ek @world install everything from packages except in the case of something not existing in which case it would build and store it? Thanks, Mark