Prune is designed to maintain a file tree, pruning files by removing and archiving them when necessary.
Prune came from my own need when working with a project that made nightly backups. I wanted to retain the most recent two weeks of backups, retain the Friday backups for anytime older than two weeks within the current and previous month, archive all friday backups from months earlier than the current and previous months, and remove non-friday backups older than two weeks.
Prune is easy to use and configurable if your own retention policy doesn’t match mine. It’s released under the unlicense (giving you most freedoms, without me assuming any liability). It has a simple Rakefile, RSpec specs and >80% spec coverage of the codebase. Give it a try, and tell me what you think.