Add rsnapshot, an rsync-based remote backup tool.

svn path=/nixpkgs/trunk/; revision=11009
This commit is contained in:
Ludovic Courtès 2008-03-07 09:33:51 +00:00
parent 07cad2fc45
commit d8bcaa4398
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,23 @@
{fetchurl, stdenv, perl, openssh, rsync, logger}:
stdenv.mkDerivation rec {
name = "rsnapshot-1.3.0";
src = fetchurl {
url = "mirrors://sourceforge/rsnapshot/${name}.tar.gz";
sha256 = "19p35ycm73a8vd4ccjpah18h5jagvcr11rqca6ya87sg8k0a5h9z";
};
propagatedBuildInputs = [perl openssh rsync logger];
patchPhase = ''
substituteInPlace "Makefile.in" --replace \
"/usr/bin/pod2man" "${perl}/bin/pod2man"
'';
meta = {
description = ''rsnapshot is a filesystem snapshot utility for making
backups of local and remote systems.'';
homepage = http://rsnapshot.org/;
license = "GPLv2+";
};
}

View File

@ -855,6 +855,14 @@ rec {
};
*/
rsnapshot = import ../tools/backup/rsnapshot {
inherit fetchurl stdenv perl openssh rsync;
# For the `logger' command, we can use either `utillinux' or
# GNU Inetutils. The latter is more portable.
logger = inetutils;
};
rlwrapFun = lib.sumArgs (selectVersion ../tools/misc/rlwrap "0.28") {
inherit builderDefs readline;
};