From unknown Thu Aug 14 21:49:47 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#47134 <47134@debbugs.gnu.org> To: bug#47134 <47134@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add zfs-auto-snapshot. Reply-To: bug#47134 <47134@debbugs.gnu.org> Date: Fri, 15 Aug 2025 04:49:47 +0000 retitle 47134 [PATCH] gnu: Add zfs-auto-snapshot. reassign 47134 guix-patches submitter 47134 raid5atemyhomework severity 47134 normal tag 47134 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 14 04:55:42 2021 Received: (at submit) by debbugs.gnu.org; 14 Mar 2021 08:55:42 +0000 Received: from localhost ([127.0.0.1]:32949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLMXF-0002EZ-TF for submit@debbugs.gnu.org; Sun, 14 Mar 2021 04:55:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:59388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLMXB-0002EP-US for submit@debbugs.gnu.org; Sun, 14 Mar 2021 04:55:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLMXB-0002bD-DW for guix-patches@gnu.org; Sun, 14 Mar 2021 04:55:37 -0400 Received: from mail-40140.protonmail.ch ([185.70.40.140]:11868) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLMX1-0003id-Mr for guix-patches@gnu.org; Sun, 14 Mar 2021 04:55:36 -0400 Date: Sun, 14 Mar 2021 08:55:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1615712122; bh=DMw6TTcXa+AnC7OnHjWQqx9a+gaJ61ZDGnqjEOTot44=; h=Date:To:From:Reply-To:Subject:From; b=lWW4XTVZA66XmQe/vqOtVAhhPcvQvxHMAad31PZmekqh72cC9G96TnwiY0VDE3Tep 28mMXNbpBNPbMCugzzAwWes1iklHGMoO5/82Imnmw7nor7RM9XOT2J9zCQslIUW6b8 GVUS0xiXFLg3mu0QYIuTFRby1zWRItGPU3u6QLpk= To: Guix Patches From: raid5atemyhomework Subject: [PATCH] gnu: Add zfs-auto-snapshot. Message-ID: <8khDgDFm8YAH3rsudpda_ASV2o4CdQLmejmEXU3QkRkUFrMfewbzBrqrC4OO2mvpuQUckFSwYmSGadSjNy87Z7NKas5fupZILvGtvPJSa3Y=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Received-SPF: pass client-ip=185.70.40.140; envelope-from=raid5atemyhomework@protonmail.com; helo=mail-40140.protonmail.ch 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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: raid5atemyhomework Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) >From be0c4d4ef73e68ace117f2a1b1396331a4fcdf84 Mon Sep 17 00:00:00 2001 From: raid5atemyhomework Date: Sun, 14 Mar 2021 16:40:47 +0800 Subject: [PATCH] gnu: Add zfs-auto-snapshot. * gnu/packages/file-systems.scm (zfs-auto-snapshot): New variable. --- gnu/packages/file-systems.scm | 54 +++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index e7d78e41fb..0543be2d82 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -975,6 +975,60 @@ originally developed for Solaris and is now maintained= by the OpenZFS community.") (license license:cddl1.0))) +(define-public zfs-auto-snapshot + (package + (name "zfs-auto-snapshot") + (version "1.2.4") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/zfsonlinux/zfs-auto-snapshot/archive/up= stream/" + version ".tar.gz")) + (sha256 + (base32 "16ry1w43i44xc67gr73x6fa48ninfhqxr498ad4m3kya93vp2zrh"))= )) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; No tests + #:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'build) + ;; Guix System may not have a traditional cron system, but + ;; the cron scripts installed by this package are convenient + ;; to use as targets for an mcron job specification, so make + ;; sure they can be run in-store. + (add-before 'install 'fix-cron-scripts + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (zfs-auto-snapshot (string-append + out + "/sbin/zfs-auto-snapshot"))) + (substitute* '("etc/zfs-auto-snapshot.cron.daily" + "etc/zfs-auto-snapshot.cron.frequent" + "etc/zfs-auto-snapshot.cron.hourly" + "etc/zfs-auto-snapshot.cron.monthly" + "etc/zfs-auto-snapshot.cron.weekly") + (("zfs-auto-snapshot") + zfs-auto-snapshot))))) + ;; Provide DESTDIR and PREFIX on make command. + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (invoke "make" "install" + "PREFIX=3D" + (string-append "DESTDIR=3D" out))) + #t))))) + (home-page "https://github.com/zfsonlinux/zfs-auto-snapshot") + (synopsis "Automatically create, rotate, and destroy periodic ZFS snap= shots") + (description + "An alternative implementation of the zfs-auto-snapshot service for = Linux +that is compatible with zfs-linux and zfs-fuse. + +On Guix System, you will need to invoke the installed shell scripts as @co= de{job} +declarations in your @code{operating-system} configuration.") + (license license:gpl2+))) + (define-public mergerfs (package (name "mergerfs") -- 2.30.2 From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 14 07:07:30 2021 Received: (at 47134) by debbugs.gnu.org; 14 Mar 2021 11:07:30 +0000 Received: from localhost ([127.0.0.1]:33006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLOan-0007g1-SR for submit@debbugs.gnu.org; Sun, 14 Mar 2021 07:07:30 -0400 Received: from mail-40140.protonmail.ch ([185.70.40.140]:26861) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLOal-0007fm-VZ for 47134@debbugs.gnu.org; Sun, 14 Mar 2021 07:07:28 -0400 Date: Sun, 14 Mar 2021 11:07:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1615720041; bh=aOgxJRQ8oQ1E9CFnv+IM51CscvqlYTkXBIZ1DyNgQCM=; h=Date:To:From:Reply-To:Subject:From; b=Dnyykaxt+RFhMxweBLdTlHsMLOl2B96Ha1vTClSatS10x4P6x0IJzQRE7R8xEB3T9 XKn4yTo7cc5P7xNQNkRsm+uiNxNg0dt1EK0EgEawhVWgvbhgTLq0Cfbok3QvhKJuFU bo9G1ClcIxDmWdzw6QisyK55KZlA88bmVJFs9R7g= To: "47134@debbugs.gnu.org" <47134@debbugs.gnu.org> From: raid5atemyhomework Subject: [PATCH] gnu: Add zfs-auto-snapshot. Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 47134 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: raid5atemyhomework Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) It works if you have `zfs` installed in your profile and invoke the shell s= cript within the profile, but not if you are running from a non-profile env= ironment, such as from `mcron`. Lemme think what is best to do... From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 14 08:04:26 2021 Received: (at 47134) by debbugs.gnu.org; 14 Mar 2021 12:04:26 +0000 Received: from localhost ([127.0.0.1]:33033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLPTt-0002gF-N5 for submit@debbugs.gnu.org; Sun, 14 Mar 2021 08:04:26 -0400 Received: from mail-40137.protonmail.ch ([185.70.40.137]:43630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLPTr-0002g0-4n for 47134@debbugs.gnu.org; Sun, 14 Mar 2021 08:04:24 -0400 Date: Sun, 14 Mar 2021 12:04:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1615723456; bh=dYKEpjEbjlGCrlXcux20oCUS/t98LuWSMbClpXPXI1o=; h=Date:To:From:Reply-To:Subject:From; b=dA7zYa5nBkeBcB8U0fAuruFZhQggxzHsfoLViFU4B75XfonoMmW8wutJFlNsl0M3F NAg4ykNDvzpc8j0jtH99WCemkNz1gqmGOp2ddDB5NpwnshlZxrWflx8QOz1dXTzK+k hyL+QeZ1MpPIPCWCm9zxoHk2GolXKlYYiznKhzDQ= To: "47134@debbugs.gnu.org" <47134@debbugs.gnu.org> From: raid5atemyhomework Subject: [PATCH v2] gnu: Add zfs-auto-snapshot. Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 47134 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: raid5atemyhomework Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Have it refer to specific zfs package. Users that inherit from the zfs package in order to compile for a specific = kernel version should also inherit from this package and pass in their zfs. Testing done: * `guix build -f zfs-auto-snapshot.scm` on a scheme file containing only th= is package. * Ran the hourly, daily, weekly, and monthly scripts "by hand". Also confi= rmed `com.sun:auto-snapshot` and `com.sun:auto-snapshot:*` settings work. * Currently have it running in a homelab server with mcron triggers on the = hourly, daily, weekly, and monthly scripts, at least one hourly trigger has= passed and snapshots were indeed created without any errors in `/var/log/m= essages`. * Checked the installed scripts and verified that the `zfs` and `zpool` com= mands refer to specific in-store binaries. Please merge! Thanks raid5atemyhomework >From 7425298029dd1c9b4f2b3bba675ddbe7eb730744 Mon Sep 17 00:00:00 2001 From: raid5atemyhomework Date: Sun, 14 Mar 2021 16:40:47 +0800 Subject: [PATCH] gnu: Add zfs-auto-snapshot. * gnu/packages/file-systems.scm (zfs-auto-snapshot): New variable. --- gnu/packages/file-systems.scm | 75 +++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index e7d78e41fb..4d01b3da46 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -975,6 +975,81 @@ originally developed for Solaris and is now maintained= by the OpenZFS community.") (license license:cddl1.0))) +(define-public zfs-auto-snapshot + (package + (name "zfs-auto-snapshot") + (version "1.2.4") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/zfsonlinux/zfs-auto-snapshot/archive/up= stream/" + version ".tar.gz")) + (sha256 + (base32 "16ry1w43i44xc67gr73x6fa48ninfhqxr498ad4m3kya93vp2zrh"))= )) + (build-system gnu-build-system) + (inputs + ;; Note: if you are inheriting from the above zfs package in order + ;; to provide a specific stable kernel version, you should also + ;; inherit this package and replace the sole input below. + `(("zfs" ,zfs))) + (arguments + `(#:tests? #f ; No tests + #:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'build) + ;; Guix System may not have a traditional cron system, but + ;; the cron scripts installed by this package are convenient + ;; to use as targets for an mcron job specification, so make + ;; sure they can be run in-store. + (add-before 'install 'fix-scripts + (lambda* (#:key outputs inputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (zfs-auto-snapshot (string-append + out + "/sbin/zfs-auto-snapshot")) + (zfs-package (assoc-ref inputs "zfs")) + (zpool (string-append + zfs-package + "/sbin/zpool")) + (zfs (string-append + zfs-package + "/sbin/zfs"))) + (substitute* '("etc/zfs-auto-snapshot.cron.daily" + "etc/zfs-auto-snapshot.cron.frequent" + "etc/zfs-auto-snapshot.cron.hourly" + "etc/zfs-auto-snapshot.cron.monthly" + "etc/zfs-auto-snapshot.cron.weekly") + (("zfs-auto-snapshot") + zfs-auto-snapshot)) + (substitute* "src/zfs-auto-snapshot.sh" + (("LC_ALL=3DC zfs list") + (string-append "LC_ALL=3DC " zfs " list")) + (("LC_ALL=3DC zpool status") + (string-append "LC_ALL=3DC " zpool " status")) + (("zfs snapshot") + (string-append zfs " snapshot")) + (("zfs destroy") + (string-append zfs " destroy")))))) + ;; Provide DESTDIR and PREFIX on make command. + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (invoke "make" "install" + "PREFIX=3D" + (string-append "DESTDIR=3D" out))) + #t))))) + (home-page "https://github.com/zfsonlinux/zfs-auto-snapshot") + (synopsis "Automatically create, rotate, and destroy periodic ZFS snap= shots") + (description + "An alternative implementation of the zfs-auto-snapshot service for = Linux +that is compatible with zfs-linux and zfs-fuse. + +On Guix System, you will need to invoke the included shell scripts as @cod= e{job} +definitions in your @code{operating-system} declaration.") + (license license:gpl2+))) + (define-public mergerfs (package (name "mergerfs") -- 2.30.2 From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 02 07:40:09 2021 Received: (at 47134-done) by debbugs.gnu.org; 2 Oct 2021 11:40:09 +0000 Received: from localhost ([127.0.0.1]:58094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWdNB-0007s0-As for submit@debbugs.gnu.org; Sat, 02 Oct 2021 07:40:09 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:54604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWdN7-0007rh-Hh for 47134-done@debbugs.gnu.org; Sat, 02 Oct 2021 07:40:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References: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:In-Reply-To:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=uPXP16hlnxMKOdjSh0EJebuBJaTvFIf9+No1BTuhOec=; b=ofd8voPAAwlJzi7zZE/RU6oSdp Y68INsPjFXHNmsk2xJvv/cmbGPUAJaF49E/2WPk30KdLD7bqSGFsf1vNNT6hfKqS7eN+pINDPaRZv IL9FneEodC/UhWezJydh3SwW4tZiOtk+6dCY9mrweRDjYjMJ4r4gdoJKgp+ZT5QIUrBVLam7BfM8Q AY1rpUhye3yaJRMOvWX3OZqeemXonTGmxRCrjY877X4BEpkdLr2R6GniyS8DGkFskwcC0owxkiH/h 4pjnh6MXZiLAfepDK3FBp7uUm0PMu1u9uhpmVjrkIuYNiVu1r6W+MXfHAn1FmUxP5HlTlzBs7Pcoq BsbstINQ==; Received: from [192.168.2.1] (port=15880 helo=steel) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mWdN4-0001UO-FK; Sat, 02 Oct 2021 17:10:02 +0530 From: Arun Isaac To: raid5atemyhomework Subject: Re: bug#47134: [PATCH] gnu: Add zfs-auto-snapshot. References: <8khDgDFm8YAH3rsudpda_ASV2o4CdQLmejmEXU3QkRkUFrMfewbzBrqrC4OO2mvpuQUckFSwYmSGadSjNy87Z7NKas5fupZILvGtvPJSa3Y=@protonmail.com> Date: Sat, 02 Oct 2021 17:09:56 +0530 Message-ID: <87a6jrirjn.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 47134-done Cc: 47134-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Hi, It looks like Danny Milosavljevic applied this patch to master with commit ba3b295a3ee956ac7500b5f9bb1d151b28ab30ed, but probably forgot to close this bug. So, I'm closing now. Thanks for contributing to Guix! Arun --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFPBAEBCAA5FiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAmFYRQwbHGFydW5pc2Fh Y0BzeXN0ZW1yZWJvb3QubmV0AAoJEC4l7othgCuzIjEH/jL24Qzj1wi7e46OsMNc FxQwubqHbR7WnSYeFo/5OTg9KoSNlaPr0epXAxV5jki8XGaYnjH31xsa/X+AWacV JFuGKf4Xj4dJZeG55OkGarphUi9Jft4/bcXJrcj9rEl0gE/UCaGCPwCMpZ7nl4RV 9s/RKfD4kaw7j1LjelaYitBfbDBk/2/VhWaSevWf7quLE43Y/yLVxJuj0x2l9HPv Mrdfe8BNxHj1Kr24MvTfsOGhZoT2YSJoQtYb3ytx6jdgXCC+0eU5q4GWSF1U6vKS R6hFxVkoJBStHPh9hebvn9/yT+APxqLhgwYc3VxuFnROxePjoShlj8mWvfnigXWu /xE= =YhEH -----END PGP SIGNATURE----- --=-=-=-- From unknown Thu Aug 14 21:49:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 31 Oct 2021 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator