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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!