mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
internal/archiver: fixed BackupEnd when SkipIfUnchanged is true
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user