728x90 반응형 crond1 crond 사용법 mkdir /etc/cron.exe vi /etc/crontab cd /etc/cron.exe touch backup.cron vi backup.cron #!/bin/sh DIRECTORY="/home/work" BACKUPDIR="/backup" INCREMENTAL=$BACKUPDIR/backuplist week=`date +%u` DM=`date +%d-%m-%y` if [ ! -d $BACKUPDIR ] then mkdir $BACKUPDIR fi if [ ! -f $BACKUPDIR/Fullbackup* ] then tar cpfz $BACKUPDIR/Fullbackup-$DM.tar.gz $DIRECTORY else if [ $week = 7 ] then rm -f $BACKUPDIR/* ta.. 2009. 7. 14. 이전 1 다음 728x90 반응형