安装crond
yum install vixie-cron crontabs
先上脚本
[shell]
#!/bin/sh
DUMP=/usr/local/mysql/bin/mysqldump
OUT_DIR=/home/liheyuan/xxx/backup/
LINUX_USER=liheyuan
DB_NAME=liheyuan
DB_USER=liheyuan
DB_PASS=xxx
#How much days backup most
DAY[......]
安装crond
yum install vixie-cron crontabs
先上脚本
[shell]
#!/bin/sh
DUMP=/usr/local/mysql/bin/mysqldump
OUT_DIR=/home/liheyuan/xxx/backup/
LINUX_USER=liheyuan
DB_NAME=liheyuan
DB_USER=liheyuan
DB_PASS=xxx
#How much days backup most
DAY[......]