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) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 3034694545 for ; Wed, 11 Jan 2023 15:52:13 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 1C5961FFA3 for ; Wed, 11 Jan 2023 15:52:13 +0100 (CET) Received: from lana.proxmox.com (unknown [94.136.29.99]) by firstgate.proxmox.com (Proxmox) with ESMTP for ; Wed, 11 Jan 2023 15:52:11 +0100 (CET) Received: by lana.proxmox.com (Postfix, from userid 10043) id AAACC2C2616; Wed, 11 Jan 2023 15:52:11 +0100 (CET) From: Stefan Hanreich To: pbs-devel@lists.proxmox.com Date: Wed, 11 Jan 2023 15:52:08 +0100 Message-Id: <20230111145210.516392-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.370 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. [pull.rs, jobs.rs, sync.rs, proxmox-backup-manager.rs] Subject: [pbs-devel] [PATCH proxmox-backup v2 0/2] add transfer-last parameter to pull/sync job 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: Wed, 11 Jan 2023 14:52:13 -0000 This patch series adds the possibility of specifying the transfer-last parameter, limiting 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 patches that attempt to fix #3701 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 (2): partial fix #3701: sync/pull: add transfer-last parameter ui: sync job: add transfer-last parameter to ui 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 | 17 ++++++++++++++++- www/config/SyncView.js | 9 ++++++++- www/window/SyncJobEdit.js | 13 +++++++++++++ 7 files changed, 76 insertions(+), 4 deletions(-) -- 2.30.2