WordPress Training Program
How to sync one site with other using WP-CLI and rsync
- Run
wp db export filename.sqlfrom siteβs root directory Rsync -avzhp ./filename.sql <destination/site/root/dir>- From the new siteβs root directory
wp db import filename.sql