I have the following:
mysqldump -u xxxx
-h localhost
--password=xxxxx databasename |
ssh username@00.000.00.202 "dd of=httpdocs/backup`date +'%Y-%m-%d-%H-%M-%S'`.sql"
... which ssh is mysqldump for the remote machine.
I need to compress mysqldump before it is SSH'd since the dump is 500 MB and it eats up my bandwidth.
source
share