[ "$1" = "" ] && exit 
f=`date`
BASE=.
APPLDIR=$BASE/appl
DATADIR=$BASE/data
PATH=$PATH:$BASE/ihd/bin
export APPLDIR DATADIR PATH
#echo APPLDIR=$APPLDIR
#echo DATADIR=$DATADIR
#echo PATH=$PATH
DOMAIN=..
WEBDIR=..
CGIDIR=.
html=$WEBDIR/$1.htm
cgi=$CGIDIR/$1.cgi
gget=$CGIDIR/$1""get.cgi
list=$CGIDIR/$1""list.cgi
bsc=$CGIDIR/$1""bsc.cgi
shh=$APPLDIR/sh/$1
etc=$APPLDIR/etc/$1
echo -n html=$html":"
echo -n cgi=$cgi":"
echo -n gget=$gget":"
echo -n list=$list":"
echo -n bsc=$bsc":"
echo -n shh=$shh":"
echo etc=$etc
data=$DATADIR/$1
appl=$APPLDIR/$1
dat=`date +%Y%m%d%H%M%S`
file=./$1.$dat.tar
tar cvf $file $html $cgi $gget $list $bsc $shh $etc $data $appl
gzip $file
#./ff.sh $1
#./rec.sh $1
