public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup 0/5] prefilter source list by verify state for sync jobs
@ 2025-05-16 11:54 Christian Ebner
  2025-05-16 11:54 ` [pbs-devel] [PATCH proxmox-backup 1/5] api: admin: refactor generation of backup dir for snapshot listing Christian Ebner
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Christian Ebner @ 2025-05-16 11:54 UTC (permalink / raw)
  To: pbs-devel

Since the introduction of the `verified-only` and `encrypted-only`
optional parameters for sync jobs, it is possible to exclude snapshot
if their are not encrypted or verified from the sync.

The current implementation, filtering the snapshots based on the
manifest information only directly before syncing said snapshot, leads
to the somewhat unexpected behaviour that in combination with the
transfer-last parameter set, the transfer-last filtering is performed
before the encryption/verificaton state filtering.

This patch series improves the current behaviour by pre-filtering the
snapshots already when generating the list of to be synced items.
This allows to apply the transfer-last filtering only after the
verified-only and encrypted-only filters, resulting in a more natural
behaviour.

Since this breaks with the current filter order, the breaking changes
should be considered for version 4 only.

Christian Ebner (5):
  api: admin: refactor generation of backup dir for snapshot listing
  api: factor out helper converting backup info to snapshot list item
  sync: source: list snapshot items instead of backup directories
  pull: refactor source snapshot list filtering logic
  sync: conditionally pre-filter source list by verified or encrypted
    state

 src/api2/admin/datastore.rs | 142 +++---------------------------------
 src/server/pull.rs          |  49 ++++++++-----
 src/server/push.rs          |  44 +++++++----
 src/server/sync.rs          |  73 +++++++++++++-----
 src/tools/mod.rs            | 129 ++++++++++++++++++++++++++++++++
 5 files changed, 252 insertions(+), 185 deletions(-)

-- 
2.39.5



_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-05-16 11:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-16 11:54 [pbs-devel] [PATCH proxmox-backup 0/5] prefilter source list by verify state for sync jobs Christian Ebner
2025-05-16 11:54 ` [pbs-devel] [PATCH proxmox-backup 1/5] api: admin: refactor generation of backup dir for snapshot listing Christian Ebner
2025-05-16 11:54 ` [pbs-devel] [PATCH proxmox-backup 2/5] api: factor out helper converting backup info to snapshot list item Christian Ebner
2025-05-16 11:54 ` [pbs-devel] [PATCH proxmox-backup 3/5] sync: source: list snapshot items instead of backup directories Christian Ebner
2025-05-16 11:54 ` [pbs-devel] [PATCH proxmox-backup 4/5] pull: refactor source snapshot list filtering logic Christian Ebner
2025-05-16 11:54 ` [pbs-devel] [PATCH proxmox-backup 5/5] sync: conditionally pre-filter source list by verified or encrypted state Christian Ebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal