From d818b7618b56f05948797dbd566457f9b2fae689 Mon Sep 17 00:00:00 2001 From: Lorenz Bausch Date: Fri, 10 May 2019 17:22:42 +0200 Subject: [PATCH] Display respective snapshot date when using `restic find` --- changelog/unreleased/issue-2072 | 5 +++++ cmd/restic/cmd_find.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/issue-2072 diff --git a/changelog/unreleased/issue-2072 b/changelog/unreleased/issue-2072 new file mode 100644 index 000000000..0586b23ea --- /dev/null +++ b/changelog/unreleased/issue-2072 @@ -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 diff --git a/cmd/restic/cmd_find.go b/cmd/restic/cmd_find.go index ed25256f7..cdc5dfb75 100644 --- a/cmd/restic/cmd_find.go +++ b/cmd/restic/cmd_find.go @@ -160,7 +160,7 @@ func (s *statefulOutput) PrintPatternNormal(path string, node *restic.Node) { Verbosef("\n") } 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") }