minima icon indicating copy to clipboard operation
minima copied to clipboard

Cleaning up not used mirror directories

Open mbologna opened this issue 6 years ago • 2 comments

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 avatar Mar 01 '18 12:03 mbologna

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

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

mbologna avatar Mar 07 '18 14:03 mbologna

Still a good idea.

srbarrios avatar Aug 27 '20 10:08 srbarrios