主机评测
专注主机评测和优惠码发布
#!/bin/bash
## Databases info
db_host="202.97.1.1"
db_user="user"
db_pass="pass"
db_name="name"
## Backup dir
bk_dir="/home/backup/"
## start
/usr/bin/mysqldump --opt -h$db_host -u$db_user -p$db_pass $db_name > $bk_dir$db_name_$(date +%F-%T).sql