2
3
Fork
You've already forked ncsu
0

Turn cached indexes into offline databases (locate, browse, ...) #263

Open
opened 2025年07月03日 22:35:08 +02:00 by bitozoid · 2 comments
bitozoid commented 2025年07月03日 22:35:08 +02:00 (Migrated from code.blicky.net)
Copy link

This is an idea / feature request, that I found no better way to share.

ncdu already can store an index of the contents of a file system. If I stow away an HDD (set it offline) but keep the ncdu index, I can use ncdu to recover and browse the contents of my archived HDD.

I wonder whether the index could be used as the 'mlocate' tool index to search also for files, or just to be dumped as the output of the find command to be grepped.

I think that a "search/locate" feature or a "dump list" (to grep later) would be a great idea.

To be more imaginative, the index even could be mounted as FUSE (not real files) so the find and locate commands could be run directly on it.

This is an idea / feature request, that I found no better way to share. ncdu already can store an index of the contents of a file system. If I stow away an HDD (set it offline) but keep the ncdu index, I can use ncdu to recover and browse the contents of my archived HDD. I wonder whether the index could be used as the 'mlocate' tool index to search also for files, or just to be dumped as the output of the find command to be grepped. I think that a "search/locate" feature or a "dump list" (to grep later) would be a great idea. To be more imaginative, the index even could be mounted as FUSE (not real files) so the find and locate commands could be run directly on it.
yorhel commented 2025年07月04日 06:08:12 +02:00 (Migrated from code.blicky.net)
Copy link

I'm not yet sure if it's worth implementing such functionality directly into ncdu. ncdutils is a separate tool I wrote to experiment with extra dump-related tooling, but it's still very incomplete. At least it can already do the "dump list" part for binary exports.

I'm not yet sure if it's worth implementing such functionality directly into ncdu. [ncdutils](https://code.blicky.net/yorhel/ncdutils) is a separate tool I wrote to experiment with extra dump-related tooling, but it's still very incomplete. At least it can already do the "dump list" part for binary exports.
bitozoid commented 2025年07月04日 11:21:25 +02:00 (Migrated from code.blicky.net)
Copy link

Great! I had some trouble compiling crystal but finally it worked.

./ncdutils find my-binary

Thanks a lot.

Great! I had some trouble compiling crystal but finally it worked. ``` ./ncdutils find my-binary ``` Thanks a lot.
Sign in to join this conversation.
No Branch/Tag specified
zig
zig0.16
master
zig-threaded
openat
chdir
clear
compll
v2.9.3
v2.9.2
v2.9.1
v2.9
v2.8.2
v2.8.1
v2.8
v1.22
v1.21
v2.7
v2.6
v2.5
v1.20
v2.4
v1.19
v2.3
v1.18.1
v2.2.2
v1.18
v2.2.1
v2.2
v1.17
v2.1.2
v2.1.1
v2.1
v2.0.1
v2.0
v2.0-beta3
v2.0-beta2
v2.0-beta1
v1.16
v1.15.1
v1.15
v1.14.2
v1.14.1
v1.14
v1.13
v1.12
v1.11
v1.10
v1.9
v1.8
v1.7
v1.6
v1.5
v1.4
v1.3
v1.2
v1.1
No labels
1.x
2.x
bug
feature
imported
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
selfisekai/ncsu#263
Reference in a new issue
selfisekai/ncsu
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?