Simple, clean, straightforward. I&#x27;ve done similar things in bash before but not bothered to publish :) It&#x27;s a good idea though to have an ecosystem of simple but flexible tools like this.<p>Here&#x27;s another idea we implemented alongside a backup system like this. Say you run a backup daily; you can run another script to prune the archives, keeping D most recent daily archives, W most recent weekly archives, M most recent monthly archives, and all yearly archives.