WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Copying a site to a sublink for backup. (5 posts)

  1. romodrummer
    Member
    Posted 6 months ago #

    Ok. so heres what I'm trying to do. I have a sublink. lets say my site is drummersrcool.com, my sublink is drummersrcool.com/sitebackup. I want my sublink to be a replica of my actual site. Can I do that?. I did everything I know I backed up my database, did the whole MySQL/MyPHPAdmin thing. It works, but when I go to the sublink all I get is a "Oops! That page can’t be found." but when I click on menus and such everything works with the original site links on it. How do I make it work with the sublink links?

    Am I missing something here, can this even be done?

  2. Robin W
    Member
    Posted 6 months ago #

    I use a sub-domain instead eg

    backup.drummerscool.com

    almost all host providers let you have a subdomain for free

    Install wordpress on the subdomain.
    Copy across wp-content - that'll get your themes, plugins, and uploads such as images

    Then export and import you MySQL database

    Then use the following code in the sql bit of php-myadmin on your sub-domain

    UPDATE wp_options SET option_value = 'http://backup.drummerscool.com' WHERE option_name IN ('siteurl', 'home')

    This changes the database to point to your sub-domain

    Then on the sub-domain install the velvet blues plugin, this lets you change all the posts/pages, images etc. point to the new sub-domain.

    Finally in dashboard>settings>reading change the search engine visibility to discourage search engines from indexing your test site.

    You now have a backup/test site !

    To keep mine up to date each month I do the following :

    Copy from main site to sub-domain the lastest uploads directory - that gets any images etc. across
    Export/import the database
    Do the UPDATE bit above
    Do the velvet blues update
    dashboard>settings>reading change the search engine visibility to discourage search engines from indexing your test site.

    quick and easy !

  3. romodrummer
    Member
    Posted 6 months ago #

    WOW!! you're awesome.. thanks!!

    Another thing Ive written on here but no one likes to reply back to me lol

    k. so I have several players of mp3s below those players I want to have some png images of a download buttons I make myself, now, people click that button and it forces said file to download to their hard drive, Ive tried with "Download Monitor" it works but I cant seem to get my own image on there its always that pesky gigantic custom css button that fills up half the screen. Is here another plugin for this you know about?

  4. Robin W
    Member
    Posted 6 months ago #

    I use 'download manager' - lots of icons there for you to choose from

  5. romodrummer
    Member
    Posted 6 months ago #

    THANK YOU!

Reply

You must log in to post.

About this Topic

Tags

No tags yet.