ウオヘラ

・ミ・テ・ッ・「・テ・ラタゥク賚ム・ケ・ッ・・ラ・ネ。」

サネ、、ハ

・ス。シ・ケ、、ャ、、ミ、テ、ニニノ、

・ス。シ・ケ

#!/bin/sh
# ------------------------
#  bakup ctrl script
# ------------------------
# Version : 1.0
# date    : 2010/01/13

export LANG=C
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:$PATH

## Set
DATEM=`date +%Y%m`
TARBACKUP=/usr/local/bin/tar-backup.sh
DBBACKUP=/usr/local/bin/mysql-dumpbackup.sh
TARGETDIR=/exports/home/server_backup
BACKUPLOG="/home/system/logs/backup_"$DATEM".log"

## Check
if [ -w $TARGETDIR ]; then
 echo "--------------" >> $BACKUPLOG
 echo "  Backup Start " >> $BACKUPLOG
 echo "--------------" >> $BACKUPLOG
 date +%Y/%m/%d\ %H:%M:%S >> $BACKUPLOG
 echo "--------------" >> $BACKUPLOG
else
 echo "--------------" >> $BACKUPLOG
 echo " Backup Failed!" >> $BACKUPLOG
 echo " Backup Directory not found" >> $BACKUPLOG
 date +%Y/%m/%d\ %H:%M:%S >> $BACKUPLOG
 echo "--------------" >> $BACKUPLOG
fi

## Exec
$DBBACKUP mysql $TARGETDIR/mysql-db.dump >> $BACKUPLOG 2>&1
$TARBACKUP /var/www/htdocs $TARGETDIR/htdocs.tgz >> $BACKUPLOG 2>&1

# END
 date +%Y/%m/%d\ %H:%M:%S >> $BACKUPLOG
 echo "--------------" >> $BACKUPLOG

## EOF

・ネ・テ・ラ   ハヤスク ナ犢 コケハャ 写酌識失竺識捨釈 ナコノユ ハ」タス フセチーハムケケ ・・。シ・ノ   ソキオャ ーヘ ク。コ コヌスェケケソキ   ・リ・・ラ   コヌスェケケソキ、ホRSS
Last-modified: 2010-01-14 (フレ) 13:27:03 (5275d)