#39 RFE: "prune" script
Opened 7 years ago by ktdreyer. Modified 7 years ago

I've written several scripts in Bash or Python to prune old composes according to some basic logic, like "delete everything except the latest FINISHED" or "delete everything except the last five". I've seen other scripts around that do the same thing.

It would be ideal to centralize this into a utility (compose-prune?) that has options like --latest 5 or something. It could parse a compose's Kobo config and determine the exact composes upon which to operate.

Something like this:

compose-prune pungi/ceph/ceph-2-rhel-7/ceph-2-rhel-7.conf /path/to/composes/  --latest 5

Login to comment on this ticket.

Metadata