Index: trunk/wikistats/squids/SquidReportArchive.sh |
— | — | @@ -1,10 +1,20 @@ |
2 | 2 | #! /bin/sh |
3 | 3 | ulimit -v 4000000 |
| 4 | + |
4 | 5 | home="/a/ezachte" |
| 6 | +month=2011-02 |
| 7 | + |
5 | 8 | # perl $home/SquidReportArchive.pl -m 201007 > SquidReportArchiveLog.txt |
6 | 9 | # after further automating SquidScanCountries.sh: |
7 | | -perl $home/SquidReportArchive.pl -c 201101 >> SquidReportArchiveLog.txt # -c for per country reports |
8 | | -perl $home/SquidReportArchive.pl -m 201101 >> SquidReportArchiveLog.txt |
9 | | -tar -cf reports.tar /a/ezachte/*.htm |
10 | | -bzip2 reports.tar |
11 | | -mv reports.tar.bz2 /a/ezachte |
| 10 | + |
| 11 | +#perl $home/SquidReportArchive.pl -c $month >> SquidReportArchiveLog.txt # -c for per country reports |
| 12 | +#perl $home/SquidReportArchive.pl -m $month >> SquidReportArchiveLog.txt |
| 13 | +#perl $home/SquidCountryScan.pl # start in July 2009 |
| 14 | + |
| 15 | +cp /a/ezachte/$month/$month-html.tar ./reports_traffic_$month.tar |
| 16 | +tar -cf reports_countries_$month.tar SquidReportPage*.htm |
| 17 | + |
| 18 | +bzip2 -f reports_traffic_$month.tar |
| 19 | +bzip2 -f reports_countries_$month.tar |
| 20 | + |
| 21 | +tar -cf reports_$month.tar reports_*_$month.tar.bz2 |