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 2A5B674E29 for ; Fri, 4 Jun 2021 09:16:27 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 1E3AE19ACD for ; Fri, 4 Jun 2021 09:16:27 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (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 firstgate.proxmox.com (Proxmox) with ESMTPS id AA83319AC4 for ; Fri, 4 Jun 2021 09:16:26 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 76BD645964 for ; Fri, 4 Jun 2021 09:16:26 +0200 (CEST) From: Dominik Csapak To: pbs-devel@lists.proxmox.com Date: Fri, 4 Jun 2021 09:16:24 +0200 Message-Id: <20210604071625.4811-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.044 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches 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] Subject: [pbs-devel] [PATCH proxmox-backup] client/pull: log snapshots that are skipped because of time 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 Jun 2021 07:16:27 -0000 we skip snapshots that are older than the last sync-time, log that so the user can know why it is not synced Signed-off-by: Dominik Csapak --- src/client/pull.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client/pull.rs b/src/client/pull.rs index 95720973..96414a7a 100644 --- a/src/client/pull.rs +++ b/src/client/pull.rs @@ -14,6 +14,7 @@ use crate::{ backup::*, client::*, server::WorkerTask, + task_log, tools::{compute_file_csum, ParallelHandler}, }; use proxmox::api::error::{HttpError, StatusCode}; @@ -495,6 +496,11 @@ pub async fn pull_group( if let Some(last_sync_time) = last_sync { if last_sync_time > backup_time { + task_log!( + worker, + "skipping snapshot {} - older than last sync", + snapshot + ); continue; } } -- 2.20.1