[pbs-devel] [PATCH proxmox/widget-toolkit/proxmox-backup] add tar.zst support for file download

Dominik Csapak d.csapak at proxmox.com
Tue Apr 12 13:04:12 CEST 2022


this series adds support for downloading .tar.zst files instead of .zip
when downloading directories of unencrypted pxar archives

PVE support is TBD, but should not be that hard to do. (Only missing
part is to add a directory directly for the restore-daemon)

we must bump 'proxmox-compression' and depend accordingly
proxmox-backup ui patch depends on new widget-toolkit
adds a new dependency on 'librust-tar-dev'

proxmox:

Dominik Csapak (2):
  proxmox-compression: add async tar builder
  proxmox-compression: add streaming zstd encoder

 proxmox-compression/Cargo.toml  |   2 +
 proxmox-compression/src/lib.rs  |   2 +
 proxmox-compression/src/tar.rs  | 172 ++++++++++++++++++++++++++++++++
 proxmox-compression/src/zstd.rs | 126 +++++++++++++++++++++++
 4 files changed, 302 insertions(+)
 create mode 100644 proxmox-compression/src/tar.rs
 create mode 100644 proxmox-compression/src/zstd.rs

proxmox-widget-toolkit:

Dominik Csapak (1):
  window/FileBrowser: add optional 'tar.zst' button

 src/window/FileBrowser.js | 39 ++++++++++++++++++++++++++++++++++-----
 1 file changed, 34 insertions(+), 5 deletions(-)

proxmox-backup:

Dominik Csapak (3):
  pbs-client: add 'create_tar' helper function
  api: admin/datastore: add tar support for pxar_file_download
  ui: datastore/Content: enable tar download in ui

 Cargo.toml                     |   1 +
 pbs-client/Cargo.toml          |   1 +
 pbs-client/src/pxar/extract.rs | 211 ++++++++++++++++++++++++++++++++-
 pbs-client/src/pxar/mod.rs     |   2 +-
 src/api2/admin/datastore.rs    |  33 ++++--
 www/datastore/Content.js       |   1 +
 6 files changed, 237 insertions(+), 12 deletions(-)

-- 
2.30.2






More information about the pbs-devel mailing list