Add rsnapshot, an rsync-based remote backup tool.
svn path=/nixpkgs/trunk/; revision=11009
This commit is contained in:
parent
07cad2fc45
commit
d8bcaa4398
23
pkgs/tools/backup/rsnapshot/default.nix
Normal file
23
pkgs/tools/backup/rsnapshot/default.nix
Normal 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+";
|
||||||
|
};
|
||||||
|
}
|
@ -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") {
|
rlwrapFun = lib.sumArgs (selectVersion ../tools/misc/rlwrap "0.28") {
|
||||||
inherit builderDefs readline;
|
inherit builderDefs readline;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user