forked from TrueCloudLab/restic
Display respective snapshot date when using restic find
This commit is contained in:
parent
1c3812a6f6
commit
d818b7618b
2 changed files with 6 additions and 1 deletions
5
changelog/unreleased/issue-2072
Normal file
5
changelog/unreleased/issue-2072
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
Enhancement: Display snapshot date when using `restic find`
|
||||||
|
|
||||||
|
Added the respective snapshot date to the output of `restic find`.
|
||||||
|
|
||||||
|
https://github.com/restic/restic/issues/2072
|
|
@ -160,7 +160,7 @@ func (s *statefulOutput) PrintPatternNormal(path string, node *restic.Node) {
|
||||||
Verbosef("\n")
|
Verbosef("\n")
|
||||||
}
|
}
|
||||||
s.oldsn = s.newsn
|
s.oldsn = s.newsn
|
||||||
Verbosef("Found matching entries in snapshot %s\n", s.oldsn.ID().Str())
|
Verbosef("Found matching entries in snapshot %s from %s\n", s.oldsn.ID().Str(), s.oldsn.Time.Local().Format(TimeFormat))
|
||||||
}
|
}
|
||||||
Printf(formatNode(path, node, s.ListLong) + "\n")
|
Printf(formatNode(path, node, s.ListLong) + "\n")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue