How To Bridle Your Backups

We have a cron job doing our MongoDB backups - (Automated Backup of MongoDB Containers).


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 for detailed explanation of the command used...

Show Comments