Restore from PBS by API to specific storage

linushstge

Well-Known Member
Dec 5, 2019
77
10
48
After migrating servers from PVE A to PVE B maybe the original storage from the PBS QEMU Server Config is not existing on the new server.
While trying to restore this backup perfectly works from Proxmox GUI PBS Storage view.

Example:
API POST Request to /api2/json/nodes/nodeXX/qemu

Parameters:
Code:
vmid = 100
archive = pbs.example.com:backup/vm/100/2024-01-01T00:00:00Z

Documentation:
https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu

In the restore POST request from the PBS Storage view, there is an attribute storage which seems to define the target storage.
The documentation comment says only "default storage".

Is this field only used for defining the target storage for the restore process?

If so, maybe the documentation could be extended with an additional comment to clarify the attribute is used for defining the target storage for restore processes.

Update:
Behaviour for multiple disks on different storages:

If the storage parameter is provided, all disks will be restored to the given storage.

Is there any way to define the target storage for each disk?


Thank you very much for clarification
 
Last edited: