diff --git a/internal/restic/snapshot.go b/internal/restic/snapshot.go index b12548459..2e8fa8a15 100644 --- a/internal/restic/snapshot.go +++ b/internal/restic/snapshot.go @@ -146,6 +146,11 @@ func (sn Snapshot) ID() *ID { return sn.id } +// SetID sets the snapshot's ID. +func (sn *Snapshot) SetID(id ID) { + sn.id = &id +} + func (sn *Snapshot) fillUserInfo() error { usr, err := user.Current() if err != nil {