From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QN0OKb6B2GZfbwEAe85BDQ:P1 (envelope-from ) for ; Wed, 04 Sep 2024 15:50:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id QN0OKb6B2GZfbwEAe85BDQ (envelope-from ) for ; Wed, 04 Sep 2024 17:50:22 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Z+iD8JrP; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=JvPZKuHt; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725465022; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=T17uX+nF2pEM6taDHgjlJnB0yagDBbjoEPFiaXJ37sU=; b=ADkxcOzMFKtEWcDbROfaOYXMf1oB5zeWW77lw3HyFQ7SncUGMym99nKAuZGhNpOy1gZ6FE GTRiCVuCWtjurVXkUxKKWiR56tuLBmzVNBza+RpTKr+A9jp9QnR+khgJRhC/5DFYerqh0Z HKVRcTKzd3PHmm/nar9uDqyuOpJDGsTXBVg+QHBkUomGh5N2+tt4eFJ+UGp6KXaGe+6ZJo JI6vXZlhf/v+hmxfy5BxNt8gYUm/9U+aPQX9MnSEhuoUCqs0nhxXxZ9Wrs9G9Ifu478bvE /chxz/D44hrHlvB/mey2HzQeetRjqSeMwhQyUrg8GjOaFoHH6ab/Gy/gYbt2lw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725465022; a=rsa-sha256; cv=none; b=DwJ5UyGLcN/OCXo2m8MRAnQ5LvIqqEn+DGbw33QvuUSKlI8EhqZV+Fi0HdjhoIQDSr1bTy oAHy3GIMRBDlWNdvAdEDuiH9V63SXUDn8g3liH306YQecv0BDUlVNCEU0oLTXI1FuHZS5B rnU9nhpI+jCrLBxc6IwGHM32DOCBZXrvihhsSFTKmc1vcd3LIsNwB0rrq2DDcEaa4I0CtD 2TAJoNoA5pTp0g6UjMN0b1pOpZUlnYT4ipq/SaxUA/S1WBVY29aWNT5rKVx0khjdxVrl7H D2e6BuwXATstkm23iuaKyalwE+3QUjUe+5m/hnHZgUt+yvcarOkI7C0wcpLTcw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Z+iD8JrP; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=JvPZKuHt; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" 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 1402573F39 for ; Wed, 4 Sep 2024 17:50:22 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slsGe-0004tY-Uo; Wed, 04 Sep 2024 11:50:01 -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 1slsGc-0004sm-W1 for guix-patches@gnu.org; Wed, 04 Sep 2024 11:49:59 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1slsGc-0002yl-N7 for guix-patches@gnu.org; Wed, 04 Sep 2024 11:49:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=T17uX+nF2pEM6taDHgjlJnB0yagDBbjoEPFiaXJ37sU=; b=Z+iD8JrPheimvmPCt4PGfT8+vCxwpOAUmDfkSe6Y4IOs8fdNlpOi0Pct5uzFiTXBSTBkQS4Ebr3sGn/RZ6B4s8t0KYftm4smh/QNU89beN+bCb0W2wP1iMcQA7JyHD0fn7Niw51eBBlTaumpUw2uJzrwrBR+ixduDvb6gPYKqjnIwAQ0simTa9FPQ87we0LXFzogVeNGYKpfE4ZzEpkzITLnxfq8ySYu0+Czdck83trSSEfUzOTNHnnBs2pqR1YZ3PNV4naz8rZHzNLo9hjMZ3wxD/lBii6By9ssDSnd/7/SV6DQLmn027mPNvVTJe2U6kM50ZUNj0v8pz33QAbRzw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1slsHe-0005l2-A2 for guix-patches@gnu.org; Wed, 04 Sep 2024 11:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71639] [PATCH WIP 0/5] Improve on restic-backup-service Resent-From: Richard Sent Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 04 Sep 2024 15:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71639 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Fabio Natali Cc: 71639@debbugs.gnu.org, paul Received: via spool by 71639-submit@debbugs.gnu.org id=B71639.172546503322086 (code B ref 71639); Wed, 04 Sep 2024 15:51:02 +0000 Received: (at 71639) by debbugs.gnu.org; 4 Sep 2024 15:50:33 +0000 Received: from localhost ([127.0.0.1]:35174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slsHA-0005k8-O2 for submit@debbugs.gnu.org; Wed, 04 Sep 2024 11:50:33 -0400 Received: from mail-108-mta60.mxroute.com ([136.175.108.60]:39133) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slsH8-0005js-2Z for 71639@debbugs.gnu.org; Wed, 04 Sep 2024 11:50:31 -0400 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta60.mxroute.com (ZoneMTA) with ESMTPSA id 191bdb9eb750003e01.002 for <71639@debbugs.gnu.org> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 04 Sep 2024 15:49:23 +0000 X-Zone-Loop: 24fe8681beb2c9f705d641ae7a8c7c05370d4dc570f4 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=T17uX+nF2pEM6taDHgjlJnB0yagDBbjoEPFiaXJ37sU=; b=JvPZKuHtu+fyLwHbc6QJKJIppQ O6emmd6wWjUQuA8P7qTpWW4MWNYUvK5KClgT9w6d0mjPrHEzC8H2c7J4efYFtLItr5VhlAxByX7oi 93vbaP3ubQy9nyC/AFReqH+gbeUigKe4FGu/LJdULqzgwi9AHCgfioMPDGiJ3nUM/YiX2wLCJZeMX kUUaNB4yiTozcRoF6C386ch1chuAznP/7rCFFyQFHToIlGSsUOWCY39AlDHGlvWrapGJ1vuFDHVO2 hHVZqPnFPbxrlMHMCa+Rc0BROK4/lJW63a4jlZlGbW7l4co5aGTJZQvKRxV/lA63NBp5D+4NmyUEQ fW14i/tQ==; From: Richard Sent In-Reply-To: <87seugelig.fsf@fabionatali.com> (Fabio Natali's message of "Tue, 03 Sep 2024 17:43:03 +0100") References: <87seugelig.fsf@fabionatali.com> Date: Wed, 04 Sep 2024 11:49:15 -0400 Message-ID: <87wmjrqv0k.fsf@freakingpenguin.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: richard@freakingpenguin.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 1402573F39 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -10.52 X-Spam-Score: -10.52 X-TUID: gzA/A7T7yASj Hi Giacomo and Fabio! I've been struck by the the law of development: the backlog will always expand to exceed the time available. >> I apologize for blocking this issue with my proposal. I think Fabio's >> proposal of splitting the changes in this patch is the best way >> forward, if you agree as well Richard. I submitted [0] to refactor the >> restic-guix procedure in a way that it can support many different >> commands. That sounds fine with me. I'll try to rebase and resubmit as time is available (hopefully the next few days......). If my schedule is inconvenient feel free to do with my patches what you will. >> 1. Improve the restic backup system service [...] >> 2. Refactor the restic-guix function [...] >> 3. Allow for repositories to be initialized with a restic-guix init >> [...] Ideally, we'd also move the system tests to 1 so further work can be trivially verified by running $ make check-system TESTS=restic. That'll require writing an intermediary bootstrapping function in the test suite. > I think this is a perfectly sensible plan. For what it's worth, I've > provided some little feedback around point 2 as part of #72803. > > As a further point, I also think we should manage to update Restic > itself to 0.17.0 (while we're still at 0.9.6 which was released in Nov > 2019). With such an out-of-date package, the service also risks to loose > a little bit of its value. That would be lovely! One particular feature I'm hopeful for is compression support. Unfortunately restic stopped providing a vendor directory in their tarball after 0.9.6 and seemingly has no interest in providing it again [1]. Last time I tried guix import with restic I saw some odd behavior. Someone with more experience in Go may have better luck. >> Lately I was thinking that may be best to have initialization as a >> one shot Shepherd service that check whether a given job is supposed >> to have its repository initialized and if that's the case it could >> run restic-guix init name-of the job. Is the intent to have one "mega" one-shot service that checks every job, or a unique one-shot service per job? I greatly prefer the former as $ sudo herd status is crowded as it is. It's worth noting users will need the ability to specify custom Shepherd requirements so e.g. backup initialization to a remote file-share isn't triggered until the file-system-/my/remote/nas symbol is provisioned by Shepherd. On an unrelated note, Shepherd timers are interesting and may allow for better user management/error signaling instead of mcron. I'm not proposing we refactor to use them now (especially since they're not even in stable), but just thought I'd mention them. [2] [1]: https://github.com/restic/restic/issues/3945 [2]: https://lists.gnu.org/archive/html/guix-devel/2024-03/msg00247.html -- Take it easy, Richard Sent Making my computer weirder one commit at a time.