What is the best practice to move site from localhost to live site?

I tried to move my site (multi site) from localhost to live site (multi site). I plan to use Snapshots for this purpose. However, I noticed when I create backup Snapshots also copy wp_users & wp_usermeta table. What is the consequence if I exclude these tables?
In my localhost I named site2 (http://localhost/free-blogging/site2) - multi site directory. If I backup using Snapshot and restore it in live site which is multi site sub domain, what happened then? Is it work? How can I then change the siteurl, home, blogname in the wp_2_options table?

  • Sajid

    Hi @Adebagus,

    Hope you are doing good today :slight_smile:

    Do you planning to move entire multi site to live or a subsite from MultiSite to live MultiSite ?

    If you exclude the users table then you will not have any users in your site, even administrator and you can't even login. These are core tables and must be include (in case they don't exist on target site).

    You do not need to manually search and replace the old URLs with new URLs. Snapshot does this automatically for you. However, if you have any URL in content then you have to replace those yourself.

    Also, we have published a detailed article on how to migrate site with snapshot, where we covered each step from creating backup to restore, that you should check beforehand.

    Take care and have a nice day :slight_smile:

    Kind Regards,
    Sajid J

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.