-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for backup and restore in proxmox-ve gui #45
Changes from all commits
b4b0fc4
7aa3aa4
762314f
09047f6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ lib, stdenv, fetchurl, ... }: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "cstream"; | ||
version = "4.0.0"; | ||
|
||
src = fetchurl { | ||
url = "https://www.cons.org/cracauer/download/cstream-${version}.tar.gz"; | ||
sha256 = "sha256-a8BtfEOG+5jTqRcTQ0wxXZ5tQlyRyIYoG+qiVMDgluM="; | ||
}; | ||
|
||
buildInputs = [ stdenv.cc ]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You want to use |
||
|
||
buildPhase = '' | ||
make | ||
''; | ||
|
||
installPhase = '' | ||
mkdir -p $out/bin | ||
cp cstream $out/bin | ||
''; | ||
|
||
meta = { | ||
description = "A general-purpose stream-handling tool like dd"; | ||
homepage = "https://www.cons.org/cracauer/cstream.html"; | ||
maintainers = with lib.maintainers; [ ]; | ||
}; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
pve-docs, | ||
pve-ha-manager, | ||
pve-http-server, | ||
cdrkit, | ||
enableLinstor ? false, | ||
ceph, | ||
gnupg, | ||
|
@@ -18,14 +19,18 @@ | |
openvswitch, | ||
openssh, | ||
pve-qemu, | ||
pve-qemu-server, | ||
tzdata, | ||
pve-novnc, | ||
pve-xtermjs, | ||
iproute2, | ||
termproxy, | ||
shadow, | ||
wget, | ||
bash, | ||
zstd, | ||
util-linux, | ||
system-sendmail, rsync, busybox, cstream, lvm2 | ||
}: | ||
|
||
let | ||
|
@@ -37,6 +42,7 @@ let | |
proxmox-acme | ||
(pve-ha-manager.override { inherit enableLinstor; }) | ||
pve-http-server | ||
pve-qemu-server | ||
]; | ||
|
||
perlEnv = perl536.withPackages (_: perlDeps); | ||
|
@@ -110,7 +116,9 @@ perl536.pkgs.toPerlModule ( | |
-e "s|/usr/share/zoneinfo|${tzdata}/share/zoneinfo|" \ | ||
-e "s|/usr/share/pve-xtermjs|${pve-xtermjs}/share/pve-xtermjs|" \ | ||
-Ee "s|(/usr)?/s?bin/||" \ | ||
-e "s|/usr/share/novnc-pve|${pve-novnc}/share/webapps/novnc|" | ||
-e "s|/usr/share/novnc-pve|${pve-novnc}/share/webapps/novnc|" \ | ||
-e "s|/usr/share/perl5/.plug|${pve-qemu-server}/${perl536.libPrefix}/${perl536.version}/\$plug|" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably better to patch the plugin-logic (PVE/VZDump.pm:45) instead, as this currently wont support lxc containers. |
||
|
||
|
||
find $out/bin -type f | xargs sed -i \ | ||
-e "/ENV{'PATH'}/d" | ||
|
@@ -120,6 +128,7 @@ perl536.pkgs.toPerlModule ( | |
--prefix PATH : ${ | ||
lib.makeBinPath [ | ||
ceph | ||
cdrkit ## cloud-init | ||
gzip | ||
openssh | ||
util-linux | ||
|
@@ -131,6 +140,9 @@ perl536.pkgs.toPerlModule ( | |
(pve-ha-manager.override { inherit enableLinstor; }) | ||
shadow | ||
wget | ||
|
||
## dependencies of backup and restore | ||
bash zstd system-sendmail rsync busybox cstream lvm2 | ||
] | ||
} \ | ||
--prefix PERL5LIB : $out/${perl536.libPrefix}/${perl536.version} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can probably be removed once #41 is merged...