all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup] client/pull: log snapshots that are skipped because of time
@ 2021-06-04  7:16 Dominik Csapak
  2021-06-04  8:21 ` Fabian Grünbichler
  0 siblings, 1 reply; 4+ messages in thread
From: Dominik Csapak @ 2021-06-04  7:16 UTC (permalink / raw)
  To: pbs-devel

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 <d.csapak@proxmox.com>
---
 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





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

end of thread, other threads:[~2021-06-04  9:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-04  7:16 [pbs-devel] [PATCH proxmox-backup] client/pull: log snapshots that are skipped because of time Dominik Csapak
2021-06-04  8:21 ` Fabian Grünbichler
2021-06-04  9:03   ` Dietmar Maurer
2021-06-04  9:04   ` 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