internal/archiver: fixed BackupEnd when SkipIfUnchanged is true

This commit is contained in:
dmotte
2025-09-23 03:07:30 +02:00
parent 93d1e3b211
commit 9017fefddd
2 changed files with 36 additions and 8 deletions

View File

@@ -927,6 +927,7 @@ func (arch *Archiver) Snapshot(ctx context.Context, targets []string, opts Snaps
if opts.ParentSnapshot != nil && opts.SkipIfUnchanged {
ps := opts.ParentSnapshot
if ps.Tree != nil && rootTreeID.Equal(*ps.Tree) {
arch.summary.BackupEnd = time.Now()
return nil, restic.ID{}, arch.summary, nil
}
}