Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add a way to cleanup the the persistent directory #228

Open
nakibrayane opened this issue Oct 28, 2024 · 0 comments
Open

Comments

@nakibrayane
Copy link

nakibrayane commented Oct 28, 2024

After removing persisted files and directories when they are not needed any more, one have to manually delete them from the persistent directory, I know this is interned behavior, You don't want to delete a user's files.

But after a wile of using impermanence, the persistent directory become filled with unwanted files, if not maintained regularly, and cleaning it up would take a lot of time.

What I want is a script that can be run and list the directories and files that are in the persistent directory, and not in impermanence config, so that I can check the directories and files if they are important, And if not I can delete them manually.

This could look like something like this:

$ nix run github:nix-community/impermanence#collect-garbage -- --flake /etc/nixos#hostname
Directories in /persistent that are not persisted using impermanence module:
/foo
/bar
/foo/a.yaml
/bar/b.toml
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

No branches or pull requests

1 participant