Duplicate your MySQL database through SSH with just one command:
mysqldump -u <local-user> -p <local-db> | gzip | ssh user@hostname \
"gunzip | mysql -u <remote-user> -p<password> <remote-db>"
Please note that you must first create a remote database.
Additional version:
mysqldump -u <local-user> -p <local-db> | xz | pv -W | ssh user@hostname \
"tee remote-dump.sql.xz | unxz | mysql -u <remote-user> -p<password> <remote-db>"
Extended version:
xz/unxz ( , - xz 100% CPU, , , , gzip)
, pv
tee
, , , . - - , , , .