#!/bin/sh

# disable filename globbing

 echo Content-type: text/html

echo
rm ../RESP/RES*
cd /
x=RESP/RESP.`date +%Y%m%d%H%M`.tar
x1=/var/www/$x
tar cvf $x1 ./var/www ./home/julian | awk ' { print $0"<br>" } ' 
gzip $x1
awk ' BEGIN {
print "<html>"
print "<head>"
print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\">"
print "<meta name=\"GENERATOR\" content=\"Inhedo 4gt 1.0\">"
print "<meta name=\"ProgId\" content=\"Inhedo Form Generator\">"
printf "<META HTTP-EQUIV=\"refresh\" content=\"0;URL=../%s.gz\">\n","'"$x"'"
print "</head>"
print "</body>"
print "</head>"
} ' 
