[ ! -d $backdir ] && echo "website data not exist!"
[ ! -d $datadir ] && mkdir $datadir
cd $backdir
if [ -f $bbssnap ]
then
rm -rf $bbssnap
tar -g $bbssnap -zcpf $datadir/bbs_full_$(date +%F-%H-%M-%S).tar.gz ./
else
tar -g $bbssnap -zcpf $datadir/bbs_full_$(date +%F-%H-%M-%S).tar.gz ./
fi