Subject: bug#26030: closed (Re: bug#26030: [PATCH] gnu: Add rsnapshot.)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 09 Mar 2017 11:33:02 +0000

Your bug report

#26030: [PATCH] gnu: Add rsnapshot.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
26030: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=26030
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#26030: [PATCH] gnu: Add rsnapshot.
From: Ricardo Wurmus <[email-masked]>
To: Thomas Danckaert <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Thu, 09 Mar 2017 12:31:52 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Thomas,

>> Can you send an updated patch?
>
> Attached, feel free to add “Co-authored by...“ :-)
>
> Thomas
> From b59515ba09cd7dc8767d23eb4e00cb94463e2dd0 Mon Sep 17 00:00:00 2001
> From: Thomas Danckaert <[email-masked]>
> Date: Wed, 8 Mar 2017 18:04:58 +0100
> Subject: [PATCH] gnu: Add rsnapshot.
>
> * gnu/packages/backup.scm (rsnapshot): New variable.
> ---

I’ve pushed this to master with commit 0da4f3659.  I made some very
minor cosmetic changes (e.g. order of fields for consistency,
capitalising ‘SSH’ in the description) — I hope you don’t mind!

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

Subject: [PATCH] gnu: Add rsnapshot.
From: Thomas Danckaert <[email-masked]>
To: [email-masked]
Date: Wed, 08 Mar 2017 20:08:56 +0100 (CET)
List-Id: <debbugs-submit.debbugs.gnu.org>

From 0d653bfc22eab87e50434475a724a32fb4dfbce0 Mon Sep 17 00:00:00 2001
From: Thomas Danckaert <[email-masked]>
Date: Wed, 8 Mar 2017 18:04:58 +0100
Subject: [PATCH] gnu: Add rsnapshot.

* gnu/packages/backup.scm (rsnapshot): New variable.
---
 gnu/packages/backup.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm
index 986ffef08..7afd33c37 100644
--- a/gnu/packages/backup.scm
+++ b/gnu/packages/backup.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2014 Ian Denhardt <[email-masked]>
 ;;; Copyright © 2015, 2016 Leo Famulari <[email-masked]>
 ;;; Copyright © 2017 Tobias Geerinckx-Rice <[email-masked]>
+;;; Copyright © 2017 Thomas Danckaert <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -43,6 +44,7 @@
   #:use-module (gnu packages mcrypt)
   #:use-module (gnu packages nettle)
   #:use-module (gnu packages pcre)
+  #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages python)
   #:use-module (gnu packages rsync)
@@ -373,6 +375,50 @@ to a remote location, and only the differences will be transmitted.  Finally,
 rdiff-backup is easy to use and settings have sensible defaults.")
     (license license:gpl2+)))
 
+(define-public rsnapshot
+  (package
+    (name "rsnapshot")
+    (version "1.4.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/rsnapshot/rsnapshot/archive/"
+                           version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256 (base32
+                "0rll7pvyyjdqiyc9chf2ingdv9qcf6s28zjb8q7znfgybcjd2wn4"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)))
+    (inputs
+     `(("perl" ,perl)
+       ("rsync" ,rsync)
+       ("openssh" ,openssh)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'autogen
+           (lambda _
+             (zero? (system* "./autogen.sh"))))
+         (replace 'check
+           (lambda _
+             (substitute*
+                 '("t/cmd-post_pre-exec/conf/pre-true-post-true.conf"
+                   "t/backup_exec/conf/backup_exec_fail.conf"
+                   "t/backup_exec/conf/backup_exec.conf")
+               (("/bin/true") (which "true"))
+               (("/bin/false") (which "false")))
+             (zero? (system* "make" "test")))))))
+    (synopsis "Incremental backup utility based on rsync")
+    (description "rsnapshot is a filesystem snapshot utility based on
+rsync.  rsnapshot makes it easy to make periodic snapshots of local
+machines, and remote machines over ssh.  The code makes extensive use
+of hard links whenever possible, to greatly reduce the disk space
+required.")
+    (home-page "http://rsnapshot.org")
+    (license license:gpl2+)))
+
 (define-public libchop
   (package
     (name "libchop")
-- 
2.11.1