Updating pages & posts from a local install to a live install
-
Hi all, what’s the best way of doing a LOCAL SERVER -> LIVE SERVER synch, where the LOCAL site has the newest page/post content?
My site uses WP in ‘CMS mode’ — it’s not a blog and it mainly uses static pages. But I have enabled user comments on pages and also News items.
The site is complex and I do all development locally. This development involves the creation of new pages and posts and new theme templates. I NEVER update the live site from it’s live admin: local content is always newest.
I need to keep the local database in synch with the live database. As I have comments enabled on the live site, I can’t copy the entire local database over the the live one as I will lose those comments.
So it seems it’s simply a case of copying the WP_POSTS and WP_POSTMETA from my LOCAL database over the LIVE database?
I’m guessing this should work fine as looking at the structures of the data, comments are only tied to posts by their common ID and as these won’t ever change, there shouldn’t be any problem with broken relationships between comments/pages/posts or overwritten data — should there?
Any perspective on this would be much appreciated.
- The topic ‘Updating pages & posts from a local install to a live install’ is closed to new replies.