Copy multiple MySQL databases from server to server, securely

I had to migrate a multi-site installation of Drupal from one server to another, and devised a way to copy all the relevant MySQL databases from the old server to the new server with a single bash command. It is secure as it is piped through SSH. Hope someone finds this useful.

Syndicate content