fixup mysqlBackup.sh
This commit is contained in:
parent
d432d51214
commit
cf84281d6c
1 changed files with 3 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
MYSQLDIR="/var/lib/backups/mysql"
|
||||
MYSQLOPTIONFILE="/root/.my.cnf"
|
||||
DAYS="30"
|
||||
|
@ -6,6 +7,8 @@ set -e
|
|||
|
||||
umask 0077
|
||||
|
||||
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/root/bin:/sbin:/usr/sbin
|
||||
|
||||
if ! pgrep mysqld > /dev/null ; then
|
||||
echo "no mysqld running!"
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Reference in a new issue