#!/bin/bash
#Script for mysql database backup
cd /var/lib/mysql
for i in $(ls -d */ |tr -d /)
do
`mysqldump -u root -p"abcdef" $i > /disk2/dbdump-MID/$i.sql`
done
#Script for mysql database backup
cd /var/lib/mysql
for i in $(ls -d */ |tr -d /)
do
`mysqldump -u root -p"abcdef" $i > /disk2/dbdump-MID/$i.sql`
done
No comments:
Post a Comment