* [pve-devel] [PATCH qemu-server] fix #2857: restore: pass keyfile to pbs-restore
@ 2020-07-20 8:26 Fabian Grünbichler
2020-07-20 9:08 ` [pve-devel] applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Fabian Grünbichler @ 2020-07-20 8:26 UTC (permalink / raw)
To: pve-devel
if configured. otherwise restoring encrypted backups will be quite
hard..
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
---
Note: for restore to actually work, we need pbs-restore linked with a
bumped libproxmox-backup-qemu which has all the recent changes w.r.t.
encryption. we might want to bump pve-qemu-kvm as well to encode these
breaking changes in package relations, or add a libproxmox-backup-qemu
dependency in qemu-server?
PVE/QemuServer.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 809124c..0a09f3a 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -5937,6 +5937,7 @@ sub restore_proxmox_backup_archive {
my $datastore = $scfg->{datastore};
my $username = $scfg->{username} // 'root@pam';
my $fingerprint = $scfg->{fingerprint};
+ my $keyfile = PVE::Storage::PBSPlugin::pbs_encryption_key_file_name($storecfg, $storeid);
my $repo = "$username\@$server:$datastore";
@@ -6054,6 +6055,7 @@ sub restore_proxmox_backup_archive {
];
push @$pbs_restore_cmd, '--format', $d->{format} if $d->{format};
+ push @$pbs_restore_cmd, '--keyfile', $keyfile if -e $keyfile;
if (PVE::Storage::volume_has_feature($storecfg, 'sparseinit', $volid)) {
push @$pbs_restore_cmd, '--skip-zero';
--
2.20.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [pve-devel] applied: [PATCH qemu-server] fix #2857: restore: pass keyfile to pbs-restore
2020-07-20 8:26 [pve-devel] [PATCH qemu-server] fix #2857: restore: pass keyfile to pbs-restore Fabian Grünbichler
@ 2020-07-20 9:08 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2020-07-20 9:08 UTC (permalink / raw)
To: Proxmox VE development discussion, Fabian Grünbichler
On 20.07.20 10:26, Fabian Grünbichler wrote:
> if configured. otherwise restoring encrypted backups will be quite
> hard..
>
> Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
> ---
> Note: for restore to actually work, we need pbs-restore linked with a
> bumped libproxmox-backup-qemu which has all the recent changes w.r.t.
> encryption. we might want to bump pve-qemu-kvm as well to encode these
> breaking changes in package relations, or add a libproxmox-backup-qemu
> dependency in qemu-server?
>
> PVE/QemuServer.pm | 2 ++
> 1 file changed, 2 insertions(+)
>
>
applied, thanks!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-20 9:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-20 8:26 [pve-devel] [PATCH qemu-server] fix #2857: restore: pass keyfile to pbs-restore Fabian Grünbichler
2020-07-20 9:08 ` [pve-devel] applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox