summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbackup/rsync-jogamp2here.sh3
-rw-r--r--www/awstats.sh11
2 files changed, 14 insertions, 0 deletions
diff --git a/backup/rsync-jogamp2here.sh b/backup/rsync-jogamp2here.sh
index 3b98b15..e3bd98f 100755
--- a/backup/rsync-jogamp2here.sh
+++ b/backup/rsync-jogamp2here.sh
@@ -37,6 +37,9 @@ function do_rsync()
my_rsync var/lib/mysql $DEST2/var/lib/
my_rsync var/spool/mail $DEST2/var/spool/
my_rsync var/log $DEST2/var/
+
+ my_rsync var/lib/awstats $DEST2/var/lib/
+ my_rsync usr/local/awstats $DEST2/usr/local/
}
do_rsync >& rsync-jogamp2here.log &
diff --git a/www/awstats.sh b/www/awstats.sh
new file mode 100644
index 0000000..e8c7679
--- /dev/null
+++ b/www/awstats.sh
@@ -0,0 +1,11 @@
+/usr/local/awstats/tools/awstats_updateall.pl now -configdir=/etc/httpd/awstats 2>&1 | tee ~/awstats.log
+/usr/local/awstats/tools/awstats_buildstaticpages.pl -config=jogamp.org -dir=/srv/www/jogamp.org/stats -builddate=%YYYY%MM
+
+#/usr/local/awstats/tools/awstats_buildstaticpages.pl -config=jogamp.org -dir=/srv/www/jogamp.org/stats -builddate=%YYYY04 -month=04
+#/usr/local/awstats/tools/awstats_buildstaticpages.pl -config=jogamp.org -dir=/srv/www/jogamp.org/stats -builddate=%YYYY05 -month=05
+#/usr/local/awstats/tools/awstats_buildstaticpages.pl -config=jogamp.org -dir=/srv/www/jogamp.org/stats -builddate=%YYYY06 -month=06
+#/usr/local/awstats/tools/awstats_buildstaticpages.pl -config=jogamp.org -dir=/srv/www/jogamp.org/stats -builddate=%YYYY07 -month=07
+#/usr/local/awstats/tools/awstats_buildstaticpages.pl -config=jogamp.org -dir=/srv/www/jogamp.org/stats -builddate=%YYYY08 -month=08
+#/usr/local/awstats/tools/awstats_buildstaticpages.pl -config=jogamp.org -dir=/srv/www/jogamp.org/stats -builddate=%YYYY09 -month=09
+#/usr/local/awstats/tools/awstats_buildstaticpages.pl -config=jogamp.org -dir=/srv/www/jogamp.org/stats -builddate=%YYYY10 -month=10
+#/usr/local/awstats/tools/awstats_buildstaticpages.pl -config=jogamp.org -dir=/srv/www/jogamp.org/stats -builddate=%YYYY11 -month=11