Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marcofbb/7529ec5d46a814884c44efc24eff6fd7 to your computer and use it in GitHub Desktop.
Save marcofbb/7529ec5d46a814884c44efc24eff6fd7 to your computer and use it in GitHub Desktop.
# Se utilizo https://www.percona.com/doc/percona-toolkit/LATEST/pt-table-sync.html para sincronizar la tablas
# En el hosting destino ejecutar las lineas
# Sincronizar tabla wp_posts
pt-table-sync --execute h=host_source,D=database_source,u=username_source,p="pass_source",t=wp_posts h=127.0.0.1,D=database_end,u=user_end,p=password_end --function MD5
# Replicar lo mismo para wp_posts, wp_postmeta, wp_termmeta, wp_terms, wp_term_relationships, wp_term_taxonomy
@marcofbb
Copy link
Author

marcofbb commented Jul 5, 2020

Ideal para tener sitios webs espejos pero separados en servidor, en theme wordpress y en usuarios (comentarios)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment