api2/tape/restore: enable restore mapping of datastores
by changing the 'store' parameter of the restore api call to a list of mappings (or a single default datastore) for example giving: a=b,c=d,e would restore datastore 'a' from tape to local datastore 'b' datastore 'c' from tape to local datastore 'e' all other datastores to 'e' this way, only a single datastore can also be restored, by only giving a single mapping, e.g. 'a=b' Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
924373d2df
commit
4c4e5c2b1e
@ -29,6 +29,7 @@ use proxmox_backup::{
|
||||
types::{
|
||||
Authid,
|
||||
DATASTORE_SCHEMA,
|
||||
DATASTORE_MAP_LIST_SCHEMA,
|
||||
DRIVE_NAME_SCHEMA,
|
||||
MEDIA_LABEL_SCHEMA,
|
||||
MEDIA_POOL_NAME_SCHEMA,
|
||||
@ -855,7 +856,7 @@ async fn backup(mut param: Value) -> Result<(), Error> {
|
||||
input: {
|
||||
properties: {
|
||||
store: {
|
||||
schema: DATASTORE_SCHEMA,
|
||||
schema: DATASTORE_MAP_LIST_SCHEMA,
|
||||
},
|
||||
drive: {
|
||||
schema: DRIVE_NAME_SCHEMA,
|
||||
|
Reference in New Issue
Block a user