[pbs-devel] [PATCH-SERIES proxmox-backup v3 0/3] add transfer-last parameter to pull/sync job

Stefan Hanreich s.hanreich at proxmox.com
Thu Apr 13 17:41:53 CEST 2023


This patch series adds the possibility of specifying the transfer-last
parameter for sync jobs / pull. This limits the amount of backups transferred.
If specified, only the newest N backups will get transferred, instead of all new
backups.

This can be particularly useful in situations where the target PBS has less disk
space than the source PBS. It can also be used to limit the amount of bandwidth
used by the sync-job.

Part of a series of changes that attempt to fix #3701

Changes from v2 -> v3:
* Add reason to SkipInfo
* improved cutoff calculation
* always re-sync latest snapshot, regardless of transfer-last
* improved logging output

Changes from v1 -> v2:
* made condition for deciding which backups to skip clearer
* changed type of transfer-last to usize instead of u64
* split api/ui changes into two commits


Stefan Hanreich (3):
  partial fix #3701: sync job: pull: add transfer-last parameter
  ui: sync job: add transfer-last parameter
  sync job: pull: improve log output

 pbs-api-types/src/jobs.rs         |  11 ++++
 src/api2/config/sync.rs           |   9 +++
 src/api2/pull.rs                  |  10 ++-
 src/bin/proxmox-backup-manager.rs |  11 +++-
 src/server/pull.rs                | 100 +++++++++++++++++++++++-------
 www/config/SyncView.js            |   9 ++-
 www/window/SyncJobEdit.js         |  13 ++++
 7 files changed, 139 insertions(+), 24 deletions(-)

-- 
2.30.2





More information about the pbs-devel mailing list