From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 9EABB8CBC7 for ; Fri, 4 Nov 2022 15:33:50 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7C1A952C8 for ; Fri, 4 Nov 2022 15:33:20 +0100 (CET) Received: from lana.proxmox.com (unknown [94.136.29.99]) by firstgate.proxmox.com (Proxmox) with ESMTP for ; Fri, 4 Nov 2022 15:33:18 +0100 (CET) Received: by lana.proxmox.com (Postfix, from userid 10043) id A005D2C2804; Fri, 4 Nov 2022 15:33:12 +0100 (CET) From: Stefan Hanreich To: pbs-devel@lists.proxmox.com Date: Fri, 4 Nov 2022 15:30:51 +0100 Message-Id: <20221104143054.75419-1-s.hanreich@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.337 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods NO_DNS_FOR_FROM 0.001 Envelope sender has no MX or A DNS records RDNS_NONE 0.793 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [sync.rs, jobs.rs, pull.rs, proxmox-backup-manager.rs] Subject: [pbs-devel] [PATCH proxmox-backup 0/3] Add prune options to sync jobs X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2022 14:33:50 -0000 This patch adds the possibility of configuring prune options for sync jobs. This runs a prune job after a successful sync job that prunes the backup groups that got synced by the respective sync job (meaning this respects group-filter, max-depth, target namespace and so on). The prune options can also be specified when running a single pull command. I also added the possibility of configuring this via the Web UI in the same way as configuring a regular prune job. The new options are documented in the Sync Job documentation as well. Stefan Hanreich (3): Add KeepOptions to Sync Job settings add KeepOptions to Web UI of Sync Jobs Add documentation for prune options in Sync Jobs docs/managing-remotes.rst | 14 +++++++ pbs-api-types/src/jobs.rs | 7 +++- src/api2/config/sync.rs | 66 +++++++++++++++++++++++++++-- src/api2/pull.rs | 11 ++++- src/bin/proxmox-backup-manager.rs | 20 +++++++-- src/server/pull.rs | 70 +++++++++++++++++++++++++++---- www/window/SyncJobEdit.js | 5 +++ 7 files changed, 175 insertions(+), 18 deletions(-) -- 2.30.2