How to copy a wordpress site without the posts.

devs101

Registered Member
Joined
Oct 13, 2011
Messages
93
Reaction score
6
Hi guys, I've got a custom wordpress site that I would like to clone and move to a different domain.

The current site over 2000 posts and I would rather not copy all this data over as its not needed.

Could someone please explain how I can do this. I would need the theme and plugins working on a new server with a black db.

Many thanks,

Devs.
 
Copy the entire site using wp clone or similar. Once copied delete all the posts, pages etc using bulk delete plugin. Delete all tags by using mass delete tags plugin and there you have a completely blank canvas to begin working on but you will retain the plugins and themes.
 
Great shout mate! However I've just tried a couple of different backup plugs (wp clone and backwpup) and they have both timed out when trying. 504 Gateway Time-out ;(

Any other thoughts?

Many thanks!
 
Crap I get the same 504 Gateway Time-out..
 
Try backup buddy
there should be a version here on the forum
 
Thanks guys, they are all timing out. Can this be done via cpanel?
 
I guess you could back up the database using Cpanel via phpmyadmin. Once the db is backed up you could create a new database (for a safety net in case you bork something up) and then add all the tables from the backed up DB to the new DB. Once in the new DB you should be able to see the table for wp_posts. Delete them. Re-export the DB as a post free copy. This should work is WordPress has a table dedicated for posts. If not, then this wont work.
 
A lot of times you get this error when the backup package gets too big, you run out of room or resources on your server. Call your hosting co and see if they can fix it.
 
You could probably try copying the whole domain over to the new domain via cpanel. then work on changing the domain name and removing the posts.
 
Back
Top