Skip to content

Conversation

@varmint708
Copy link
Contributor

This feature adds support for not deleting missing files or directories from the index (default is to remove them). This is for cases where the mount point might to temprary offline and you don't want to reindex them again when it is online and are using SkipExisting features, thus saves a lot of time if the repo exceeds a couple of terrabyte for those specific directores/files.

This feature adds support for not deleting missing files or
directories from the index (default is to remove them). This
is for cases where the mount point might to temprary offline
and you don't want to reindex them again when it is online
and are using SkipExisting features, thus saves a lot of time
if the repo exceeds a couple of terrabyte for those specific
directores/files.
@laktak
Copy link
Owner

laktak commented Oct 10, 2025

I still think you should have your index on the disk (#33) ;)

In any case the PR looks good but could you please change it to:

KeepMissing bool `help:"keep missing files in the index"`

The parser automatically adds a [no-] inverse in front and this looks better.

@varmint708
Copy link
Contributor Author

Thanks @laktak for considering this feature. I really tried to get it working as you mentioned it in #33, but even after spending quite some time on it, it failed in some weird way due to number of disks, offline schedules for them or the way the files are spread on them and thus decided to add this. I hope it is ok.

@varmint708 varmint708 changed the title feature: add --no-delete option to chkbit update command. feature: add --KeepMissing option to chkbit update command. Oct 10, 2025
@laktak
Copy link
Owner

laktak commented Oct 11, 2025

Looks great now, thanks! Take care :)

@laktak laktak merged commit 7786710 into laktak:master Oct 11, 2025
1 check passed
@varmint708 varmint708 deleted the update-no-delete branch October 12, 2025 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants