#!/bin/bash#my.hc.sh PATH=/usr/local/sbin:/usr/bin:/bin BACKDIR = /backup/mysqlROOTPASS = ********DBLIST = `ls -p /var/lib/mysql | grep / | tr -d /` rm -rf $BACKDIRmkdir -p $BACKDIR for dbname in $DBLISTdomysqlhotcopy $dbname -u root -p $ROOTPASS $BACKDIR | logger -t mysqlhotcopydone
;