Hi all,
i have found that the old log files in webxx/log folders are too big, thats why i have created this bash script to compress those files.
The script is short (and ugly too, i know

, but it's working ):
Code:
#!/bin/sh
for i in `find /var/www/ -type f -mtime +2 -name web.log | grep -v "/\`date +%m\`/"` ; do gzip $i; done
Run it from cron every day, after ISPConfig's log.php script (which is running 0.30 AM every day in the default installation)
Recent comments
2 days 14 hours ago
2 days 23 hours ago
3 days 2 hours ago
3 days 3 hours ago
3 days 5 hours ago
3 days 6 hours ago
3 days 8 hours ago
3 days 9 hours ago
4 days 1 hour ago
4 days 2 hours ago