From mboxrd@z Thu Jan 1 00:00:00 1970 From: zimoun Subject: Re: protect generations Date: Tue, 7 Jan 2020 13:11:55 +0100 Message-ID: References: <20200105224236.2e4fb9c2@jasniac.instanton> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51937) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioniS-00028g-Ty for help-guix@gnu.org; Tue, 07 Jan 2020 07:12:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioniR-0001LT-NV for help-guix@gnu.org; Tue, 07 Jan 2020 07:12:08 -0500 Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]:34370) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ioniR-0001L1-J8 for help-guix@gnu.org; Tue, 07 Jan 2020 07:12:07 -0500 Received: by mail-qt1-x82e.google.com with SMTP id 5so45086794qtz.1 for ; Tue, 07 Jan 2020 04:12:07 -0800 (PST) In-Reply-To: <20200105224236.2e4fb9c2@jasniac.instanton> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Marco van Hulten Cc: help-guix Hi, On Sun, 5 Jan 2020 at 22:42, Marco van Hulten wrote: > One of the great features of Guix is that one can roll back his > profile. But I did a garbage collection (gc) that was too aggressive > such that a relevant old profile disappeared. I presume this is gone > forever. >From my understanding, yes gone but not necessary forever. How did you instantiate the profile? Using a manifest file? Did the profile use only one Guix commit or several? How aggressive it was? What did you run? > Is it possible to lock certain generations (of certain users) such that > 'guix gc' would not touch it? Interesting whislist. Currently, the easiest way to protect the state of a profile is to write down a manifest file, IMHO. If this manifest file track the Guix commit and the targeted packages, then you can re-instantiate this very profile whereever and whenever you want to. Hope that helps. All the best, simon