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
1 day 5 hours ago
1 day 10 hours ago
1 day 14 hours ago
1 day 16 hours ago
2 days 6 hours ago
2 days 6 hours ago
2 days 11 hours ago
2 days 18 hours ago
2 days 19 hours ago
2 days 20 hours ago