]> git.proxmox.com Git - proxmox-backup.git/commit
api2/tape/restore: add optional snapshots to 'restore'
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 11 May 2021 10:50:04 +0000 (12:50 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 11 May 2021 10:53:38 +0000 (12:53 +0200)
commitff99780303adf206298c1ca9b277258f2c43d3d2
tree487e4246447cc35862118ac8f6fc78815672367a
parentfa9507020af34f07f20662dbb85f3c65ffd23fa5
api2/tape/restore: add optional snapshots to 'restore'

this makes it possible to only restore some snapshots from a tape media-set
instead of the whole. If the user selects only a small part, this will
probably be faster (and definitely uses less space on the target
datastores).

the user has to provide a list of snapshots to restore in the form of
'store:type/group/id'
e.g. 'mystore:ct/100/2021-01-01T00:00:00Z'

we achieve this by first restoring the index to a temp dir, retrieving
a list of chunks, and using the catalog, we generate a list of
media/files that we need to (partially) restore.

finally, we copy the snapshots to the correct dir in the datastore,
and clean up the temp dir

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/api2/tape/restore.rs