I want to restore a back up with a different database

I wanted to know if I could upload a back up with the edited config file so I can back up my site to the new host with the new database.

  • Predrag Dubajic

    Hi Joseph,

    Hope you're doing well today.

    Do you have backups created with our Snapshot plugin or have you manually created your backups?

    Basically what you can do is to create a fresh installation of WordPress on your new server and then update your wp-config.php by adding your "custom" stuff from the old file, you should keep the database information intact.

    After that, you can restore your database to that site, that however depends on how you created a backup in the first place and which way you will use to restore it.

    In the end, if needed, you would need to update the database to replace old domain with the new one, plugins like this one https://wordpress.org/plugins/better-search-replace/ could do this for you.

    Best regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.