-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Support different sort for ls, in particular by time #4179
Description
Output of restic version
restic 0.15.0 compiled with go1.19.5 on linux/arm
What should restic do differently? Which functionality do you think we should add?
The ls command would be more useful if you could specify different sorting than alphabetically, in particular reverse sort by time, showing the newest files last would be helpful.
In standard Linux/UNIX, the sorting of the output from the ls command can be done in several different ways. I personally rarely am interested in the alphabetical sort when using the -l option, but in stead find my self always typing 'ls -ltr' to get the files most recently modified last. In other cases, sorting by size is useful. Ideally, the restic ls command should support the --sort and --reverse options of the GNU implementation of ls.
What are you trying to do? What problem would this solve?
Making restic ls behave like Linux ls does.
Did restic help you today? Did it make you happy in any way?
Yep - just upgraded to 0.15. And it saves me money by being the only backup I need.