#!/bin/bash

TODAY=`/bin/date +%Y%m%d`
DELDAY=`/bin/date -d -30days +%Y%m%d`

tar -cvf /home/AA/source/BACKUP_$TODAY.tar  --exclude /home/upload /KCC_LAB/

rm -f /home/AA/source/BACKUP_%DELDAY.tar  \; 



Posted by wychoi
,