写了一个再简单不过的数据备份;
#!/bin/bash user="root" pass="" cd /mnt/sqlBac echo "You are in backup dir" filename=`date +%Y%m%d` mysqldump -u${user} -p${pass} --all-databases > $filename.sql echo "Your database backup successfully completed"
写了一个再简单不过的数据备份;
#!/bin/bash user="root" pass="" cd /mnt/sqlBac echo "You are in backup dir" filename=`date +%Y%m%d` mysqldump -u${user} -p${pass} --all-databases > $filename.sql echo "Your database backup successfully completed"