Sync two mysql databases.
Create an YAML file inside current directory or ~/.dbsync.yml
.
E.g:
servers:
master:
username: "mysql_username"
password: "mysql_password"
host: "localhost"
port: 3306
schema: "master_db"
timezone: "UTC"
slave:
username: "mysql_username"
password: "mysql_password"
host: "localhost"
port: 3306
schema: "slave_db"
timezone: "UTC"
ssh:
user: "my_ssh_user"
host: "example.com"
port: 22
key: "~/.ssh/your_pk_file" # if omitted, ssh agent keys is used