wodny / ncdu-export

Standalone ncdu export feature
GNU General Public License v3.0
34 stars 9 forks source link

borg create support #4

Open Atemu opened 1 month ago

Atemu commented 1 month ago

A use-case of mine is that I want to be able to preview what a borg create run would do but borg has a bespoke --exclude implementation that differs from ncdu's and also has support for custom exclusion/inclusion patterns that cannot be easily replicated in ncdu.

This adds borg2flat.py to generate a flattened JSON from borg's own borg create --list output which applies all of its custom exclusion patterns.

Atemu commented 2 weeks ago

Friendly ping @wodny in case you missed this too :)

wodny commented 1 week ago

Thanks :) I've checked everything that I missed. I've seen it but need some time to squeeze it between day job tasks. I hope to handle it soon because I also use borg so it would nicely extend the toolbox.

Atemu commented 1 week ago

No worries, you don't owe me anything :)

Just wanted to make sure it didn't go under in a flood of other messages.