From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 0DRrIYGF2mQgAwAASxT56A (envelope-from ) for ; Mon, 14 Aug 2023 21:50:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iA01IYGF2mRrEgEA9RJhRA (envelope-from ) for ; Mon, 14 Aug 2023 21:50:25 +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 28AD949F70 for ; Mon, 14 Aug 2023 21:50:25 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Y1Q2iECR; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692042625; h=from:from:sender:sender: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=8FCKy6ye5e6bdsQGqgSR8Qt7qBNkg1Ob5gD9zzzKL4A=; b=BEEVIP+JbMNnf86xFJb41VUPbPwcVJMHNg9Ja5jBtw7K0qu1ldcEe7GoXy7qCWqtZXFBlZ 0TIbOCrpxC5e6NchV/GoHfDb6OzJkOEfLO82xQcFzIacNQ1EL3529IEk7jnYLs54fd1rcN qre4a0j7mJEZHKkyiYMgPjkhwhQ8ZU8iYE5Wm0cLFkazPLJ99WZ4sz5hbzLS4BcO95z44o u9xCUy+jQy57IQXdxMIAi3yZmmEyzUrBYjd+h1CCkRmxyUje2ktJ6hs+WyIeGZwIp6NgtL tU448yunkuM7lC4y00gFbwb5C4d2MFcEmj0aWkU31qmKzEW2xT7/z4LGBOeQng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Y1Q2iECR; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692042625; a=rsa-sha256; cv=none; b=rc/Jq/fg8SHGuBbROOYhpfL0Scj1DNICiGx3NOSdneUgRBK6wnZMkRC1IAkoL2Ay1mTsDe HHq8UFTaNns600htaLrkzIf4XnlTkTzntiqqTGLmlJUiU+E3fenYRcMkRoqtyqteqTJz58 UiNRHmUT6uaGJIHrT4lEC+uF/YULtd7NmMbNYnD44gdc9ktdDpoBJfkbFGlzpi0rwRNmW7 QbzSfr1fIFQRb/Lk2bvM7Lpd9PgiqzuoUhWeAVFyIcdd9W/rLTdMxT6GroIOk0m3IZlRt4 9lst+/IIgdtO6fZ9qjgI3Ud+xwv7p+PRioZK/PjNNPbiKS4+A4aAglleFHu4Pg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qVdZR-0006cX-GV; Mon, 14 Aug 2023 15:49:45 -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 1qVdZP-0006c3-U3 for guix-devel@gnu.org; Mon, 14 Aug 2023 15:49:43 -0400 Received: from mail-oi1-x234.google.com ([2607:f8b0:4864:20::234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qVdZO-0003Gp-GF for guix-devel@gnu.org; Mon, 14 Aug 2023 15:49:43 -0400 Received: by mail-oi1-x234.google.com with SMTP id 5614622812f47-3a800814122so925472b6e.0 for ; Mon, 14 Aug 2023 12:49:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692042581; x=1692647381; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=8FCKy6ye5e6bdsQGqgSR8Qt7qBNkg1Ob5gD9zzzKL4A=; b=Y1Q2iECREnhlHB3KzvxzYV8W2Cx3LWhItmTJI9Yo1Ck2T1WSyvND9YXyQshzyu2+G+ lf/pn/AhyNIvoGrQpY1YdXwCjAPvZ/X2+XTkWJpypgMN1/v+1g0vDq7TqHbp3xTlN94A w1jfBKYVVrozveI5hAbDA5l3h7qvoWOvIwM06TKbk61bc28KEH52uWZLeylmSZPlWcVq 4dmAH+1w/HVFfnSSQ71EPNwGJ/1J4PCqKoDep515In7HvmsvWIHJkwYH/1yukAHMJxqu 3J6tmLsKy5msjFAn5/bMiKm8AqVhlslmptpibyPCAxiWWnDohE+dPgH2mye5eqFho/bN Dw5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692042581; x=1692647381; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8FCKy6ye5e6bdsQGqgSR8Qt7qBNkg1Ob5gD9zzzKL4A=; b=e6L/QHGbjdX1CJI6PYA1WacV2ny4eIa3bS5g4rBkcIZq1jlppz7YnBXdxdh8ChYfl3 Dw+BfBUvEJ3Uo5VOPhaA05j7YqlByp/W9q7GlKcNG1p+SfEy/5eNT5lQs8g+XLbMV1DD bgnagMfc9sfpNYYucOmoC3iA9E1z/fqI4NwWUw9tiGJ+HoBz+0gK/9bg2Ybh79ysDKal XQIaLZNfpM8lkEXBVUP+DC+R+rRuRFL/KmBn5QKN5qitRhbwqCuQBstGUQM2vD8n67vu q7iwGunau8lxqGooCCAgKTc6CMdEZsqEOfBYe3XtQRjjKwY45WeWOfnsp3sNkQFx4MAU grlA== X-Gm-Message-State: AOJu0YxSR8b5uTqL6dl8eAy7eXLEA/HU+Bw6XjQL9tdymSlW6BPvA6e6 dVlnw1D8oTWgTy3YlW1Fexs= X-Google-Smtp-Source: AGHT+IHo0yuv9qWB2GevziZawfyiQN0QdxIiZxUaVagr16anVmV3O74D0R4V/wU4nCTSBtCyzAZrAg== X-Received: by 2002:a05:6358:249b:b0:134:d128:9f5f with SMTP id m27-20020a056358249b00b00134d1289f5fmr8631578rwc.9.1692042580843; Mon, 14 Aug 2023 12:49:40 -0700 (PDT) Received: from hurd (dsl-148-65.b2b2c.ca. [66.158.148.65]) by smtp.gmail.com with ESMTPSA id f26-20020ac86eda000000b0040fe13251dasm3323423qtv.83.2023.08.14.12.49.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 12:49:40 -0700 (PDT) From: Maxim Cournoyer To: Felix Lechner via "Development of GNU Guix and the GNU System distribution." Cc: Nicolas Graves , Felix Lechner Subject: Re: btrfs recommended layout for snapshots? References: <87jztxn2hc.fsf@ngraves.fr> Date: Mon, 14 Aug 2023 15:49:38 -0400 In-Reply-To: (Felix Lechner via's message of "Mon, 14 Aug 2023 09:56:17 -0700") Message-ID: <871qg5l7zh.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::234; envelope-from=maxim.cournoyer@gmail.com; helo=mail-oi1-x234.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 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.56 X-Spam-Score: -8.56 X-Migadu-Queue-Id: 28AD949F70 X-Migadu-Scanner: mx2.migadu.com X-TUID: NP5KD9AzFBHz Hi, Felix Lechner via "Development of GNU Guix and the GNU System distribution." writes: > Hi Nicolas, > > On Mon, Aug 14, 2023 at 7:06=E2=80=AFAM Nicolas Graves via Development of= GNU > 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] I agree, unless you very high requirements to minimize downtime in case of failures, thus justifying the need of snapshotting the root fs and backing it up to external storage, just snapshotting /home should be good enough for most users. I'd still opt for a flat subvolume layout to preserve the ability to snapshot / at all in the future, in case you ever need to. That's tentatively covered/explained in info '(guix)Btrfs file system'. > 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. Do note that you may run out of inodes if your store grows very large. zstd compression also helps a lot ot keep /gnu/store growth in check, and should reduce wear to flash based storage. --=20 Thanks, Maxim