From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0KBlC2HNiGKjhQAAbAwnHQ (envelope-from ) for ; Sat, 21 May 2022 13:30:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cBZWCmHNiGKpjgAA9RJhRA (envelope-from ) for ; Sat, 21 May 2022 13:30:41 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C720732B64 for ; Sat, 21 May 2022 13:30:40 +0200 (CEST) Received: from localhost ([::1]:34206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsNJf-0001P6-VO for larch@yhetil.org; Sat, 21 May 2022 07:30:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsNJE-0001Nz-St for guix-devel@gnu.org; Sat, 21 May 2022 07:30:15 -0400 Received: from mail-ej1-x642.google.com ([2a00:1450:4864:20::642]:44688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsNJA-0003yD-UY for guix-devel@gnu.org; Sat, 21 May 2022 07:30:10 -0400 Received: by mail-ej1-x642.google.com with SMTP id f21so6190735ejh.11 for ; Sat, 21 May 2022 04:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=F0s5q0IzS0X/oqscoQmZs11ej78SJQZIFpdIpZMkPvw=; b=dKMjLkhXApfJ6VWMjKsn4ZuCcP8SdWHxxG04pz/JS5FrpWw0oEu5VqupEOVAnKL98J Uifp8MhNlX8fOvAJzFFyBl9007wZghTVbVoGNBzLSmtK1KXNe2CklrNXGYPfsBwEDGLP OUBDBejuj7lbmNzr/j+3yzVT8DecKIqoqi9rw+Pl69gUM8Y+4ZYsyNQir0tFjEbr3PUA 28yJ49GN01SRbI69EcT1z/k3JCxgHGYcS2RWa7NWVPhIK6ZBgzF7sfFrUAnq08WTtfrN qXzdLgBXsoFhSpVQToZqth6E8k189ejxbtx/A/Igqc5nwoJhNS8U5r6iJTO5JNVbrxFe lyZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=F0s5q0IzS0X/oqscoQmZs11ej78SJQZIFpdIpZMkPvw=; b=FYNUm5UpJIIk5J6A15zan5kSKM9KCZentdv3E8Q23GXtxOxDq2QGw8l8wxUX6drsR2 Iea8jlmFffUYgnXraMHSRbNttsQSPDzZbkfOnM27yZwsy3d5n7LDuT7zLRD40pcifqad AW/ZJoVsODFObMbB2vGQxD9mQ8en2aMzOb1ljtwC0Z6phuhAPAMq/gC5zeZepZnEYM8Y BXJSW04hmNkhUCvnrmsppDI5a0jbrdVGnDkDGHuzT28AhODPgEg+ychVuAP06ilTBf5y Z+1N6ZrwxjYF0N3IMTuvlfOGhI2M4NAfbQTpL997j5TyANpAvHYEcwvtpM/mMPYlkTAV 2itA== X-Gm-Message-State: AOAM530Dw0UMsMq+nN+FAvB/cMUu+AkUSVxnlYSYUkYWSRq8HG0wzz/Z AcDwfxUUmvIcJjbnZdQSmQ2k9lXELDg= X-Google-Smtp-Source: ABdhPJyb5tCJl/kTrM65xUKoccFR9kFzbyA4ErwesKN7O+hJ+PUYRlHx7Vo2EpG5tqPDLdR+MUasDQ== X-Received: by 2002:a17:907:d22:b0:6f4:8766:2042 with SMTP id gn34-20020a1709070d2200b006f487662042mr12208076ejc.259.1653132607489; Sat, 21 May 2022 04:30:07 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id hy3-20020a1709068a6300b006f3ef214e11sm4202738ejc.119.2022.05.21.04.30.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 May 2022 04:30:07 -0700 (PDT) Message-ID: Subject: Re: wishlist: =?UTF-8?Q?=E2=80=9Crepack=E2=80=9D?= generations history of profile From: Liliana Marie Prikler To: zimoun , Guix Devel Date: Sat, 21 May 2022 13:30:06 +0200 In-Reply-To: <86wnegb9it.fsf@gmail.com> References: <86wnegb9it.fsf@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::642; envelope-from=liliana.prikler@gmail.com; helo=mail-ej1-x642.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653132641; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=F0s5q0IzS0X/oqscoQmZs11ej78SJQZIFpdIpZMkPvw=; b=SONVNpjzwR1TIe+cgHfY5Jbfbfdew8Wk/j5nvgOUC2lijb8kQof3H5s+2Gli8DIOneOWyZ zbVKJmZLZP0DJKti4miAXq2sVMuMCLWcREDadZzzNL2m+YDeatiweal1Yf6t45Yxxi+CtK klTZ42FREsQUVSSWggDd6nOIZ5YDQvQK0FVMzlQ4CrXvi+NezHH3PIEATCN5aEBojKF82S /UYSl3Ha6IWBnqnzlb2Uh3ISdRepVcq3ITc8+bvD2q+/vUMH2+HbdyMW1j4cPeHiOKYX91 qlSn5N6OqtmsjBA5QKezBvbBL6NBy9o/x7mZhCST6DXFNjCeosz0oSFfstCfaw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653132641; a=rsa-sha256; cv=none; b=qWy0tUmOiih1bl3T8uEVjg+BBvA7+msq8Qpt2aYf58w9VfeQgRXgW46Q9YTPVMcT8FZOyF YVoEHdI1R5RxlbUSxOKkZY7KwAHXfi58lC2iMnR2ru84g7THv1KpNCgBl2kPYJaPcToIoz 56tvZx3VJ72v4w1HgXrP+L//1xLeag1wGJAaFX4CyxQIR5GklAu+J8LN6A8a/qODJgmDTJ I+WX3tOQjA+Vb0aYJXkuZIs1+bkHx9xDRSM66A238TbKl9YFc5SMJutlsohX+ShtG/1OfZ KjGly2+JXRswSMvvm92ozJ9FWppeYjlBMFu7m3YRR7ZD8EjnewUEBWPgSn4lkw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=dKMjLkhX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.85 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=dKMjLkhX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C720732B64 X-Spam-Score: -5.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: 1JjJv+GdZuVX Hi, Am Freitag, dem 20.05.2022 um 15:47 +0200 schrieb zimoun: > Hi, > > [...] > Now, assume I am running out of space.  If I run, > >     guix gc --delete-generations=2m > > then I am removing the items in the store (data) and also the meta > data (manifest, date, channels, etc.). > > I am fine to delete the old items in the store.  I do not want to > keep things I am not using.  However, for tracking and monitoring, I > would like to still keep these meta and potentially be able to > rebuild such generation. > > The question is what to do when we delete? > > I am proposing to delete the content, i.e., all but keep the meta, > i.e., the file manifest.  We could have an option soft (keep meta) > and hard (remove all, meta included, as today) for guix gc. > [...] > WDYT? I think we should implement this as a single --keep=stuff operator, where stuff can be a comma-separated list. In your case, I think the stuff you wanted to keep were the profile manifests, but you could as easily say that you want to keep all the .drv files and only drop the store items. With some fantasy, we could even add "essentials", which would be git-minimal and other packages that are native inputs in the building of guix itself. I'm not so sure if I understand the generation bit correctly, but with the switch proposed above, you'd --keep=generations, which keeps just enough data to make switch-generation work "lazily". WDYT?