[pbs-devel] [RFC PATCH proxmox-backup] tape: single snapshot restore
Dominik Csapak
d.csapak at proxmox.com
Mon May 3 10:37:59 CEST 2021
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
More information about the pbs-devel
mailing list