From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yF1bAQxd2mStfwEASxT56A (envelope-from ) for ; Mon, 14 Aug 2023 18:57:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gOBiAAxd2mQX3AAAG6o9tA (envelope-from ) for ; Mon, 14 Aug 2023 18:57:48 +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 A1E6A4C0A2 for ; Mon, 14 Aug 2023 18:57:47 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=qpRN9EEo; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692032267; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=oL8kPdkSjzE6fjDOTD2uaI6i2l/SeTGSSDm5j4LF0Ag=; b=X3MLXThtnJdVhEIDgR7eWPoJ63JcFgj2h/FaZAjRhXBKButUvHfPanXUwX0lWzko1GRgVX mOjBXxc0/ShDwaBHL6Zzn2FxxAQdZi8TJUwvoTw5dt6anLniOEjQycLYmSRg6FtrKzv99d G7IhywwnN35Abx6n6sPfB5TuhM70R7PAqJQqYdoZN2qqJJjf5PhnZ9kCk3KuaE1bmQy2Xb dJUYE5ifgztP1tNIJW29sTenZijGxR04yh4UUQj2ZokMJVzQ6Gc4bMaEOF3uz6tnhs80oH d+xjon0y4NFjss6m0ib0q0ZCChf0J7/mgIM78939qZQjo6w239HRuExAgnkl8A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=qpRN9EEo; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692032267; a=rsa-sha256; cv=none; b=LQ5bKZkEJwN/Y6kMEyjougZ6doy1PTp+H53XEBH0w1wV5zkB8fN4hIvW4KgsIBwpOjre0B EM/gAu01GjO/m4/LakFWNZTUEnhKWCv33MF6jMoW+ZqtXi8gx03xTnYdX8cpJZC6XHAwy9 752zwg/ZLfQG/ECIbTMYiHm+MuJliiZCHv5GlUXE/82XvLmhTcjiwjusYNFVu5oeTfof/w PIbNABIdTo8UItIEFhPZQh3p0VMjJ1RC8TFgiUqExfNLM2K1s0+07PbSigTB52eJJqdrsF s2tufK7tpdwq2exG4KmOoTjvrId3+CXuM8/DziGajib6a0TurkxbLL3NDfwElw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qVasV-0008Lx-1u; Mon, 14 Aug 2023 12:57:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qVasL-0008K2-Md for guix-devel@gnu.org; Mon, 14 Aug 2023 12:57:05 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qVasJ-0004HX-OG for guix-devel@gnu.org; Mon, 14 Aug 2023 12:57:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=AOWV0U15vsS/Mpj tpLPwNbqiu+ekymeAuj9c/um6ung=; h=cc:to:subject:date:from:in-reply-to: references; d=lease-up.com; b=qpRN9EEoY6AzfKVnJDavHBjHWZ7vvCyx4DVYiTJy 6O9S8gk+K1ngHl47zxd7biyoEiIvBAt+4tQYbx1hrgR6xMSL3m46hv+BtDqicsEUxv1+ob fkgHbXxehzRkyqE0G5j4XH5PH5ip8ChzpU+8E6b444yPrmCNK+9MHVc9ZOceo= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 2337ed6a (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for ; Mon, 14 Aug 2023 16:56:55 +0000 (UTC) Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-4fe4f5290daso7062399e87.1 for ; Mon, 14 Aug 2023 09:56:55 -0700 (PDT) X-Gm-Message-State: AOJu0YzCSjbrmKTzsCGMvAv59lGrMrnS/cMPFc7BR4ouqouQl6GqrZe4 QunXgjWgoR6Kda+1ycFBv4Wk6+/ysViEdtbQXS8= X-Google-Smtp-Source: AGHT+IEwoyxSdaGUejnc5n2jIX7FZwcM734BwJxHshLn5ZWnbCRgyUYfD7cBvwNOtFd/4EsA15GHVv83H6cWMwbYGAk= X-Received: by 2002:a05:6512:239a:b0:4f8:6c1f:b1ab with SMTP id c26-20020a056512239a00b004f86c1fb1abmr8873016lfv.27.1692032213559; Mon, 14 Aug 2023 09:56:53 -0700 (PDT) MIME-Version: 1.0 References: <87jztxn2hc.fsf@ngraves.fr> In-Reply-To: <87jztxn2hc.fsf@ngraves.fr> Date: Mon, 14 Aug 2023 09:56:17 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: btrfs recommended layout for snapshots? To: Nicolas Graves Cc: guix-devel@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@lease-up.com; helo=sail-ipv4.us-core.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Reply-to: Felix Lechner From: Felix Lechner via "Development of GNU Guix and the GNU System distribution." Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -5.69 X-Migadu-Queue-Id: A1E6A4C0A2 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -5.69 X-TUID: cN2KTMXBxBQt Hi Nicolas, On Mon, Aug 14, 2023 at 7:06=E2=80=AFAM Nicolas Graves via Development of G= NU Guix and the GNU System distribution. wrote: > > not snapshotting the rootfs > This would allow to simply care about only a few "user data" > directories > I .. would be glad to find one I believe Guix does a good job of managing system generations and only snapshot user data. (My root is also on a faster ext4 file system, not Btrfs.) Here is what I do. [1] In order to avoid confusion with the live file system, I mount snapshots volumes separately under /history. [2] My user data is generally also encrypted and mounted to /home from networked folders under /acct. Hope that information is helpful to you. Kind regards Felix [1] https://codeberg.org/lechner/system-config/src/commit/f847bb09093c94517= 1814e18fd7d43ed94256336/host/wallace-server/operating-system.scm#L498-L516 [2] https://codeberg.org/lechner/system-config/src/commit/f847bb09093c94517= 1814e18fd7d43ed94256336/host/wallace-server/operating-system.scm#L654-L659