From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id AOZoC+PmUWboTgEAe85BDQ:P1 (envelope-from ) for ; Sat, 25 May 2024 15:25:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id AOZoC+PmUWboTgEAe85BDQ (envelope-from ) for ; Sat, 25 May 2024 15:25:55 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=WSqk3tav; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716643555; 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-to: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=bmMUX9n/wtjGufS6DOt/vZIni4lKDrvWGHkMbYzPw5w=; b=PdrtUlXD1Wl0nGZqsleZJEyEma+Zeiu/oABZctiKyFUXDmlb2LNlYLEDtcxuUik9hxdsQm Gu4JDKIWlMTkTlNxoa64FEtR5wKLeWwLdJemusiT1uHHeh9YGeubpSTdbxRF1a2qckGzMT Cwz8we7KEYqLEfGL9l9JOwuqjsKbSJfXOPovDZpIJVL9LDnSDPzUdPpHLn30M/01jrY4b1 pthemdMq9gfjYMws+iCCMH/NHEaaTtiVCKgvVQIXFLKfBKRAMorGsDYB5ZtqHVeA7sKgFI 4WAl5f3bOMnPvSnyYSQPjHy+MwVVGu6zqGEC0qw/2zb88iLSE1yEdzUSonrrVw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=WSqk3tav; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716643555; a=rsa-sha256; cv=none; b=IFLdY+errtnGIN6ZPHLBji4Q/efOEXMRg5ch6QHGk4Y9T/2T18PWa4AzLlBqfWE8XZASm5 aRHcDsVF23NVLzuTgA2sDIHnQTwu9niIk6zIefkmwdGoAMOnefg7my/uaHcnggCURtrKbb H43FmpqGrxknHc25669d/57g8qBWcJHFW45orVgifL+wpTqAz/pNaFQRy+Byr+hg8nI2II JjnGnkl5yjeCgwHjvUSGeoznn3qrdoOMfKsLC1CDEZ3C2ko4ow/eiwq10JvAQDFWE882bT bvuClskMB6tRCP3iSO58jWwLDvxoxEf8PXKPTMa77LCCCrmZbSp+whd9ciAdtA== 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 EFC146FC2F for ; Sat, 25 May 2024 15:25:54 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sArOX-0000PN-VS; Sat, 25 May 2024 09:25:09 -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 1sArOK-0000Fz-2E for guix-patches@gnu.org; Sat, 25 May 2024 09:24:56 -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 1sArOJ-0001QE-Qn for guix-patches@gnu.org; Sat, 25 May 2024 09:24:55 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sArOQ-0006T0-Vi for guix-patches@gnu.org; Sat, 25 May 2024 09:25:03 -0400 Subject: bug#69513: [PATCH v3] services: Add restic-backup service. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Sat, 25 May 2024 13:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 69513 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Giacomo Leidi Cc: 69513-done@debbugs.gnu.org Mail-Followup-To: 69513@debbugs.gnu.org, ludo@gnu.org, goodoldpaul@autistici.org Received: via spool by 69513-done@debbugs.gnu.org id=D69513.171664346424723 (code D ref 69513); Sat, 25 May 2024 13:25:02 +0000 Received: (at 69513-done) by debbugs.gnu.org; 25 May 2024 13:24:24 +0000 Received: from localhost ([127.0.0.1]:43411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sArNo-0006Qg-0e for submit@debbugs.gnu.org; Sat, 25 May 2024 09:24:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sArNm-0006QM-7u for 69513-done@debbugs.gnu.org; Sat, 25 May 2024 09:24:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sArNU-0001HL-Tn; Sat, 25 May 2024 09:24:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=bmMUX9n/wtjGufS6DOt/vZIni4lKDrvWGHkMbYzPw5w=; b=WSqk3tavFG9qnaHu6W0R YOBiCrbDG/apz5k/qKzRmWE7pHLWxU9GCZTBbZsUxNrNcEKxr0Gye3p036A4v7fuzZ0hu2DqWrBBu YCG6X+0thdhE/7gfsbrlLuIvyLSvxlsTcFwNq66VnFPoM2vaBXD2pIFa+zM4NorUoehR3pu8B9v6l QZDX2RSpIHJZ/XUuxqnj3+xE5DZf2ql1M3BGhantPFXLFA+zmFw/oauu9pw4szGFLm1cWyp5TBhUc o0FG37CCCjv+Mr59kvpyRsymKdMTjQeZuCNWaNWs304jZc1S0YN5ndZN5ED2V2WYSvsaXySuAOZll FtPeO33i3D7cbQ==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <4d1b9e86fa4c0f70b30d45de5a29ec19b41c0e8f.1714598106.git.goodoldpaul@autistici.org> (Giacomo Leidi's message of "Wed, 1 May 2024 23:15:07 +0200") References: <3afc07b0f3e6663a9fb64203544bce1659f97364.1709412684.git.goodoldpaul@autistici.org> <4d1b9e86fa4c0f70b30d45de5a29ec19b41c0e8f.1714598106.git.goodoldpaul@autistici.org> Date: Sat, 25 May 2024 15:23:57 +0200 Message-ID: <87r0dq10uq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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-Spam-Score: -6.25 X-Spam-Score: -6.25 X-Migadu-Queue-Id: EFC146FC2F X-Migadu-Scanner: mx13.migadu.com X-TUID: mpy86DNKYrR5 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, Giacomo Leidi skribis: > * gnu/services/backup.scm: New file. > * gnu/local.mk: Add this. > * doc/guix.texi: Document this. > > Change-Id: I9efd5559bb445b484107a7c27c2d0a65ccad1e66 Please consider adding a system test for this: as previously discussed, we try hard to have tests for every system service. I=E2=80=99ve applied it with the minor doc changes below. There might be more work that could be done to ensure the doc is self-contained. For instance, I merely guessed that =E2=80=98rclone=E2=80= =99 needed to be in the system profile so =E2=80=98restic=E2=80=99 would use it, and I ca= nnot tell what those repository URIs should look like. Perhaps this can be solved with a few more words, examples, and/or links to the upstream doc? Thank you! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/doc/guix.texi b/doc/guix.texi index acf35357a60..d2643cf7fd9 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -41102,10 +41102,13 @@ Miscellaneous Services following configuration: @lisp +(use-service-modules backup @dots{}) ;for 'restic-backup-service-type' +(use-package-modules sync @dots{}) ;for 'rclone' + (operating-system - - (packages (list "rclone")) - + ;; @dots{} + (packages (append (list rclone) ;for use by restic + %base-packages)) (services (list (service restic-backup-service-type @@ -41127,7 +41130,8 @@ Miscellaneous Services Each @code{restic-backup-job} translates to an mcron job which sets the @env{RESTIC_PASSWORD} environment variable by reading the first line of -@code{password-file} and runs @command{restic backup}. +@code{password-file} and runs @command{restic backup}, creating backups +using rclone of all the files listed in the @code{files} field. The @code{restic-backup-service-type} installs as well @code{restic-guix} to the system profile, a @code{restic} utility wrapper that allows for easier --=-=-=--