We have a cron job doing our MongoDB backups - (Automated Backup of MongoDB Containers).
Nice.
But...the available disk space is continuously shrinking.
Let's add an automatic cleanup task to our list of cron jobs crontab -e
15 02 * * * find /path/to/backups -mindepth 1 -mtime +20 -delete
Please see the cool explain shell service explainshell.com for detailed explanation of the command used...