restic icon indicating copy to clipboard operation
restic copied to clipboard

Sort Output of "restic find" by snapshot date

Open lingej opened this issue 7 years ago • 2 comments

Output of restic version

restic 0.8.0 (v0.8.0-55-g95b6e4e9) compiled with go1.9.2 on linux/amd64

Actual behavior

restic snapshots show alle snapshots orders by date restic find shows all found files but not ordered by snapshot date

Expected behavior

  • Output should be sorted by snapshot timestamp.
  • Add snapshot id to long output of restic find -l if possible

lingej avatar Dec 23 '17 11:12 lingej

Good idea, thanks for reporting it!

fd0 avatar Jan 02 '18 19:01 fd0

Sorting by snapshot timestamp should be fairly easy to implement: just sort the snapshots before starting the actual snapshot processing.

To print the full id it would be necessary in cmd_find.go to adapt statefulOutput.PrintPatternNormal accordingly.

MichaelEischer avatar Aug 20 '22 14:08 MichaelEischer