all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup v2 0/5] prefilter source list by encryption/verify state for sync jobs
@ 2025-07-29  9:31 Christian Ebner
  2025-07-29  9:31 ` [pbs-devel] [PATCH proxmox-backup v2 1/5] api: admin: refactor generation of backup dir for snapshot listing Christian Ebner
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Christian Ebner @ 2025-07-29  9:31 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.

Changes since version 1:
- rebased onto current master

proxmox-backup:

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(-)


Summary over all repositories:
  5 files changed, 252 insertions(+), 185 deletions(-)

-- 
Generated by git-murpp 0.8.1


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


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

end of thread, other threads:[~2025-08-05 13:12 UTC | newest]

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal