[pbs-devel] [PATCH v2 proxmox-backup 8/9] www: content: lookup via metadata archive instead of catalog
Christian Ebner
c.ebner at proxmox.com
Fri Jun 7 13:37:51 CEST 2024
In case of pxar archives with split metadata and payload data, the
metadata archive has to be used to lookup entries for navigation
before performing a single file restore.
Decide based on the archive filename extension whether to use the
`catalog` or the `pxar-lookup` api endpoint.
Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
www/datastore/Content.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/www/datastore/Content.js b/www/datastore/Content.js
index 6dd1ab319..e11b14b54 100644
--- a/www/datastore/Content.js
+++ b/www/datastore/Content.js
@@ -786,6 +786,9 @@ Ext.define('PBS.DataStoreContent', {
'backup-time': (time.getTime()/1000).toFixed(0),
'backup-type': type,
};
+ if (rec.data.filename.endsWith(".mpxar.didx")) {
+ extraParams['archive-name'] = rec.data.filename;
+ }
if (view.namespace && view.namespace !== '') {
extraParams.ns = view.namespace;
}
--
2.39.2
More information about the pbs-devel
mailing list