#!/bin/sh
#WEB
srcDir="example.com";
date=`date +%w`;
dstFile="/bak/data/example.com/web.${srcDir}.week${date}.tar.gz";
cd /www/htdocs
tar zcf $dstFile $srcDir
#DB
srcDir="com_example";
date=`date +%w`;
dstFile="/bak/data/example.com/db.${dir}.week${date}.tar.gz";
cd /www/bin/mysql/data
tar zcf $dstFile $srcDir