[pbs-devel] [PATCH proxmox-backup] client/pull: log snapshots that are skipped because of time
Dominik Csapak
d.csapak at proxmox.com
Fri Jun 4 09:16:24 CEST 2021
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 at 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
More information about the pbs-devel
mailing list