#!/bin/bash #authors misery 2019 # BAK_DIR=/home/web_code1/backup/mysql_backup/`date +%Y-%m-%d` MYSQL_CMD=/usr/bin/mysqldump MYSQL_USER=root MYSQL_PW=123456 MYSQL_DB=webapp #判断用户是否正确 if [ $UID -ne 0 ];then echo -e "