From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 9F22278DF8 for ; Mon, 3 May 2021 10:38:41 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 86E9B1AB8C for ; Mon, 3 May 2021 10:38:11 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id BD8691AB58 for ; Mon, 3 May 2021 10:38:07 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 8A07042A16 for ; Mon, 3 May 2021 10:38:07 +0200 (CEST) From: Dominik Csapak To: pbs-devel@lists.proxmox.com Date: Mon, 3 May 2021 10:37:59 +0200 Message-Id: <20210503083806.24138-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.005 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pbs-devel] [RFC PATCH proxmox-backup] tape: single snapshot restore X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 May 2021 08:38:41 -0000 this is a first version of a possible single snapshot restore from tape some small parts are in-progress/unfinished: * api path is (imho) not optimal, but did not find something better (integration into existing restore call gets ugly fast...) * schema for the snapshot list is not done yet (but not hard..) * no parallelization (also not done yet for normal restore) * some things could probably be better refactored * gui for multiselection is not done yet (have to think about how we do that for a good ux) questions to answer: do we really want to have the ability to restore multiple 'single' snapshots in one go? if not, it would drastically simplify the code Dominik Csapak (7): tape/drive: add 'move_to_file' to TapeDriver trait tape/media_catalog: add helpers to look for snapshot/chunk files api2/tape/restore: factor out check_datastore_privs api2/tape/restore: make datastore in restore_snapshot_archive optional api2/tape/restore: add 'restore-single' api path bin/proxmox-tape: add restore-single command to proxmox-tape ui: tape: add single snapshot restore src/api2/tape/mod.rs | 1 + src/api2/tape/restore.rs | 617 ++++++++++++++++++++++++++++++++- src/bin/proxmox-tape.rs | 62 ++++ src/tape/drive/lto/mod.rs | 4 + src/tape/drive/mod.rs | 3 + src/tape/drive/virtual_tape.rs | 22 ++ src/tape/media_catalog.rs | 20 ++ www/tape/BackupOverview.js | 41 +++ www/tape/window/TapeRestore.js | 26 ++ 9 files changed, 777 insertions(+), 19 deletions(-) -- 2.20.1