Ls ncdu#4550
Conversation
|
I am intrigued by this patch, so had to try it out ;-) But when a snapshot contains multiple paths it doesn't work correctly and specifying a specific path results in the following error: |
|
I've extended the @jvandenbroek The code should now also work when specifying a path. remaining TODOs:
|
NCDU (NCurses Disk Usage) is a tool to analyse disk usage of directories. It has an option to save a directory tree and analyse it later. This patch adds an output option to the ls command. A snapshot can be seen with `restic ls latest --ncdu | ncdu -f -` - https://dev.yorhel.nl/ncdu
|
So cool feature, thanks! Will it be released in the next version? |
|
Yes it will be part of restic 0.17, but that will still take a few months until it will be released. Until then you can use a beta release from https://beta.restic.net/?sort=time&order=desc . |
|
@MichaelEischer When testing this with snapshots of multiple paths, it seems to only pass the first folder to |
What does this PR change? What problem does it solve?
NCDU (NCurses Disk Usage) is a tool to analyse disk usage of directories.
It has an option to save a directory tree and analyse it later.
This patch adds an output option to the ls command for the NCDU format.
Use
restic ls latest --ncdu | ncdu -f -Was the change previously discussed in an issue or on the forum?
no
Created issue: #4549
Checklist
changelog/unreleased/that describes the changes for our users (see template).gofmton the code in all commits.