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

Cleaning up not used mirror directories #9

Open
mbologna opened this issue Mar 1, 2018 · 2 comments
Open

Cleaning up not used mirror directories #9

mbologna opened this issue Mar 1, 2018 · 2 comments

Comments

@mbologna
Copy link

mbologna commented Mar 1, 2018

Whenever we change minima.yaml and remove a source mirror, the corresponding directory still remains in the mirror file-system.
Idea: adding a small script that checks for every ^path in minima.yaml and deletes (if configuration allows) every directory inside /srv/mirror that does not have a corresponding item in minima.yaml.
Thoughts?

@mbologna
Copy link
Author

mbologna commented Mar 7, 2018

Small script (to be polished) to list orphaned directories:

https://gist.github.com/mbologna/075a3ebb70b70b26bf0fcdbb4513ea81

@srbarrios
Copy link
Member

Still a good idea.

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

2 participants