#!/bin/sh #백업날짜 BACKUP_DAY=`date '+%Y%m%d_%H%M%S_%3N'` echo ================================ echo MariaDB Backup echo db_backup.sh process start echo $BACKUP_DAY echo ================================ echo #오늘날짜 TODAY=`date '+%Y%m%d_0040'` #백업할 경로 BACKUP_DIR=/mysql_backup/$TODAY #오늘날짜명으로 된 폴더 없을시 생성 echo $BACKUP_DIR if [ ! -d /mysql_backup/$(date +$TODAY) ] then mkdir $BACKUP_DIR fi BACKUP_DAY=`d..