proxmox-backup/pbs-api-types/src/tape
Dominik Csapak 07ffb86451 api: tape/restore: add namespace mapping
by adding a new parameter 'namespaces', which contains a mapping
for a namespace like this:

store=datastore,source=foo,target=bar,max-depth=2

if source or target are omitted the root namespace is used for its value

this mapping can be given several times (on the cli) or as an array (via
api) to have mappings for multiple datastores

if a specific snapshot list is given simultaneously, the given snapshots
will be restored according to this mapping, or to the source namespace
if no mapping was found.

to do this, we reutilize the restore_list_worker, but change it so that
it does not hold a lock for the duration of the restore, but fails
if the snapshot does exist at the end. also the snapshot will now
be temporarily restored into the target datastore into the
'.tmp/<media-set-uuid>' folder.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2022-05-13 14:08:32 +02:00
..
changer.rs update to first proxmox crate split 2021-10-11 11:58:49 +02:00
device.rs api types: rust fmt 2022-04-10 18:00:18 +02:00
drive.rs api types: rust fmt 2022-04-10 18:00:18 +02:00
media.rs api types: rust fmt 2022-04-10 18:00:18 +02:00
media_location.rs cleanup schema function calls 2021-12-16 11:25:02 +01:00
media_pool.rs api types: rust fmt 2022-04-10 18:00:18 +02:00
media_status.rs update to first proxmox crate split 2021-10-11 11:58:49 +02:00
mod.rs api: tape/restore: add namespace mapping 2022-05-13 14:08:32 +02:00