#!/bin/bash
echo "delete old file"
rm -rf logs.gz

echo "start compression"
#gzip ../log/thttpd.log > ../www/thttpd.log.gz
#gzip ../log/thttpd.log.1 > ../www/thttpd.log.1.gz
tar -zcvf logs.tgz ../log/thttpd.log ../log/thttpd.log.1
#cat thttpd.log.gz thttpd.log.1.gz > logs.gz

echo "compression done"

