просто оставлю этот тут:
# cat /opt/production/scripts/reports.sh
#!/usr/local/bin/bash
dir="/home/xxx/backup"
d=`date | awk '{print $2 $3}'`
m=`date | awk '{print $2}'`
dm=`date | awk '{print $3}'`
w=`date | awk '{print $1}'`
d="${dir}/$d/"
mkdir $d
if [ $w == "Mon" ]; then `cp -r /opt/production/AGE/Project/Reports ${d
(
Read more... )