[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#26030: [PATCH] gnu: Add rsnapshot.
From: |
Thomas Danckaert |
Subject: |
bug#26030: [PATCH] gnu: Add rsnapshot. |
Date: |
Wed, 08 Mar 2017 20:08:56 +0100 (CET) |
From 0d653bfc22eab87e50434475a724a32fb4dfbce0 Mon Sep 17 00:00:00 2001
From: Thomas Danckaert <address@hidden>
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 <address@hidden>
;;; Copyright © 2015, 2016 Leo Famulari <address@hidden>
;;; Copyright © 2017 Tobias Geerinckx-Rice <address@hidden>
+;;; Copyright © 2017 Thomas Danckaert <address@hidden>
;;;
;;; 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
- bug#26030: [PATCH] gnu: Add rsnapshot.,
Thomas Danckaert <=