mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2025-01-20 14:03:53 +03:00
1d746a2c02
Spawn a new tokio task which about every minute displays the cumulative progress of the backup for pxar, ppxar or img archive streams. Catalog and metadata archive streams are excluded from the output for better readability, and because the catalog upload lives for the whole upload time, leading to possible temporal misalignments in the output. The actual payload data is written via the other streams anyway. Add accounting for uploaded chunks, to distinguish from chunks queued for upload, but not actually uploaded yet. Example output in the backup task log: ``` ... INFO: processed 2.471 GiB in 1m, uploaded 2.439 GiB INFO: processed 4.963 GiB in 2m, uploaded 4.929 GiB INFO: processed 7.349 GiB in 3m, uploaded 7.284 GiB ... ``` This partially fixes issue 5560: https://bugzilla.proxmox.com/show_bug.cgi?id=5560 Signed-off-by: Christian Ebner <c.ebner@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>