Add --prune-states #8

Closed
opened 2026-05-20 16:41:45 +00:00 by mdaleo404 · 0 comments
Owner

Eventually the database will increase in size, so the --list will almost become useless (too long).

Maybe adding an option to remove old states will help the user be more in control.

We can have the same formula we have for mirro. See here.

  • an environment variable CHGUARD_STATES_LIFE that will manage the life (in days) of the states
    • this can be added into the user's .bashrc
  • a default value for that variable (e.g. 30)
  • ability to override that value with chguard --prune-states=14
Eventually the database will increase in size, so the `--list` will almost become useless (too long). Maybe adding an option to remove old states will help the user be more in control. We can have the same formula we have for `mirro`. [See here](https://git.sysmd.uk/guardutils/mirro#remove-old-backup-files). - an environment variable `CHGUARD_STATES_LIFE` that will manage the life (in days) of the states - this can be added into the user's `.bashrc` - a default value for that variable (e.g. 30) - ability to override that value with `chguard --prune-states=14`
mdaleo404 added the Kind/Feature label 2026-05-20 16:41:45 +00:00
Sign in to join this conversation.