Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort Output of "restic find" by snapshot date #1495

Closed
lingej opened this issue Dec 23, 2017 · 2 comments · Fixed by #4409
Closed

Sort Output of "restic find" by snapshot date #1495

lingej opened this issue Dec 23, 2017 · 2 comments · Fixed by #4409
Labels
category: user interface help: minor complexity less complex issue, good for beginners that want a little challenge yet not too complicated help: wanted type: feature suggestion suggesting a new feature

Comments

@lingej
Copy link

lingej commented Dec 23, 2017

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
@fd0
Copy link
Member

fd0 commented Jan 2, 2018

Good idea, thanks for reporting it!

@MichaelEischer
Copy link
Member

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 MichaelEischer added help: wanted help: minor complexity less complex issue, good for beginners that want a little challenge yet not too complicated labels Aug 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: user interface help: minor complexity less complex issue, good for beginners that want a little challenge yet not too complicated help: wanted type: feature suggestion suggesting a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants