1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to copy a wordpress site without the posts.

Discussion in 'Web Hosting' started by devs101, Oct 11, 2014.

  1. devs101

    devs101 Registered Member

    Joined:
    Oct 13, 2011
    Messages:
    79
    Likes Received:
    1
    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.
     
  2. sturose

    sturose Power Member

    Joined:
    Nov 6, 2013
    Messages:
    760
    Likes Received:
    836
    Gender:
    Male
    Occupation:
    Freelance sex slave
    Location:
    Chained up in a dungeon
    Home Page:
    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.
     
  3. Conor

    Conor Jr. VIP Jr. VIP

    Joined:
    Nov 7, 2012
    Messages:
    3,373
    Likes Received:
    5,437
    Gender:
    Male
    Location:
    South Africa
    Home Page:
  4. devs101

    devs101 Registered Member

    Joined:
    Oct 13, 2011
    Messages:
    79
    Likes Received:
    1
    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!
     
  5. devs101

    devs101 Registered Member

    Joined:
    Oct 13, 2011
    Messages:
    79
    Likes Received:
    1
    • Thanks Thanks x 1
  6. devs101

    devs101 Registered Member

    Joined:
    Oct 13, 2011
    Messages:
    79
    Likes Received:
    1
    Crap I get the same 504 Gateway Time-out..
     
  7. nanavlad

    nanavlad Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 2, 2009
    Messages:
    2,420
    Likes Received:
    892
    Gender:
    Male
    Occupation:
    SEO Consultant
    Location:
    Proxy Central
  8. Asif WILSON Khan

    Asif WILSON Khan Executive VIP Premium Member

    Joined:
    Nov 10, 2012
    Messages:
    10,132
    Likes Received:
    28,589
    Gender:
    Male
    Occupation:
    Fun Lovin' Criminal
    Location:
    London
    Home Page:
  9. devs101

    devs101 Registered Member

    Joined:
    Oct 13, 2011
    Messages:
    79
    Likes Received:
    1
    Thanks guys, they are all timing out. Can this be done via cpanel?
     
  10. codexaero

    codexaero Newbie

    Joined:
    Mar 2, 2013
    Messages:
    30
    Likes Received:
    3
    Home Page:
    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.
     
  11. Techxan

    Techxan Elite Member

    Joined:
    Dec 7, 2011
    Messages:
    3,093
    Likes Received:
    3,585
    Occupation:
    Local SEOist
    Location:
    TEXAS (you have to yell, its the law.)
    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.
     
    • Thanks Thanks x 1
  12. edgali

    edgali Registered Member

    Joined:
    Mar 29, 2011
    Messages:
    72
    Likes Received:
    3
    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.