remote_backup.sh
#!bin/bash #用于数据库异地备份 basefile=/mnt/data/mysql/ ip=112.74.53.175 date echo "becoming remote_backup" echo "---start backup-------" rsync -avz /mnt/data/mysql/* root@112.74.53.175:/home/data/mysql/ echo "backup complete" exit $?
Last updated 2 years ago