#!/bin/sh cd /var/www mysqldump -q --opt -h localhost --user=root --password={password} --events --all-databases > /var/www/backup/db_$(date +%y%m%d).sql gzip -f /var/www/backup/db_$(date +%y%m%d).sql echo "Sync.... \r\n"; java -jar /opt/SyncrifyClient/Loader.jar -console backup.syncrify
Prev
避免 shell 指令被重複執行