Created
February 17, 2023 09:00
-
-
Save marvin-marvin/0a505259ab1ce4c22a5cebc2c140aee5 to your computer and use it in GitHub Desktop.
cleanup_logs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#sudo crontab -e | |
0 0 * * * /usr/bin/find /var/log -name "*.gz" -type f -mtime +30 -exec rm -f {} \; -print >> /var/log/cron_delete.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment