• I need to migrate the site to a new server but, I have had problems with the backups before.

    Is there a fail proof way to migrate without losing posts or pictures. I have thought about doing a copy of the entire directory structure but that leaves the problem of the MySQL database.

    I cannot think of any route that covers all bases.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 1. You can move your site to the new server without loosing anything, for this install BackUpWordPress Plugin to take a backup of your site:
    https://www.ads-software.com/plugins/backupwordpress/

    After installing it,
    a. Take a manual backup of the files and database both. Unzip this and move all the files to the new server.
    b. Create an database and import the database from the unzip folder.
    c. In the root you will see a wp-config.php file, Update database information in it.
    d. In database, open wp_options table, update home and site_url information.
    e. Re save your permalinks.

    Thread Starter AZOlddog

    (@azolddog)

    That sounds similar to what I have tried except for a complete copy of the files. I will give that a try and see if it is the missing link!

    Thanks

    You can give it a try. Every time, I use the same method to migrate site to a new server.

    This approach will work only if you do not have any plugins that store URL or path information in the database. It definitely will not work for every installation.

    When you move a site, you must replace the old URLs and paths with the new ones. Some of these are stored in the database in ‘serialized’ form where the string length is stored along with the string. You must use special tools to search and replace the old values with the new ones.

    If you replace an old URL with a new one of a different length, it will break the serialization, causing many different problems.

    If the old site is still available, you can use the steps shown in this article to copy the site: https://wordpress.mcdspot.com/2012/08/22/migrating-a-wordpress-site-step-by-step/

    If the old site is not available, and you still have a copy of the database from that site, you should be able to use this tool to make the changes: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Need to Migrate to New Server’ is closed to new replies.