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 F284479AB9 for ; Wed, 5 May 2021 12:09:20 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id E81E9139A3 for ; Wed, 5 May 2021 12:09:20 +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 730D51393D for ; Wed, 5 May 2021 12:09:19 +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 4A7B745979 for ; Wed, 5 May 2021 12:09:19 +0200 (CEST) From: Dominik Csapak To: pbs-devel@lists.proxmox.com Date: Wed, 5 May 2021 12:09:10 +0200 Message-Id: <20210505100918.506-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.015 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 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [mod.rs, restore.rs, proxmox-tape.rs] Subject: [pbs-devel] [PATCH proxmox-backup v2 0/8] 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: Wed, 05 May 2021 10:09:21 -0000 v2 of the series, some small parts are still 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..) * gui for multiselection is not done yet (have to think about how we do that for a good ux) questions still 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 changes from v1: * use parallel handler for chunk restore * rebase on master * add patch to return manifest from try_restore_snapshot_archive * using of Arc like we do now in rest of the file @Dietmar, could you test on real tape hardware if it works correctly as-is? Dominik Csapak (8): 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: remove unnecessary params from (try_)restore_snapshot_archive api2/tape/restore: return backup manifest in try_restore_snapshot_archive 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 | 668 +++++++++++++++++++++++++++++++-- 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, 821 insertions(+), 26 deletions(-) -- 2.20.1