Articles in this section

Migration from WPB 12.0 to WPB 17.8.12

kb: technical ABT: Group B

Warning: This guide assumes that migration is performed onto a fresh 17.8.12 installation. Thus, keep in mind, that any existing data on the target WPB instance will be erased during migration.

Note: Information about the installed license will not be migrated. You will have to install the license on the target WPB instance manually.

Prerequisites

  • WPB 12.0.9 is installed on the source node
  • WPB 17.8.12 is installed on the target node
  • Root access for both nodes

Migration

I. Collect the data to be migrated

On the source node perform the following operations as user with sufficient permissions (root assumed):

  1. Create archive directory:

    # mkdir sitebuilder

  2. Dump database contents:

    # mysqldump sitebuilder5 > sitebuilder/sitebuilder.sql

  3. Copy sites data:

    # cp -a /usr/local/sb/htdocs/sites sitebuilder/sites

  4. Copy private data:

    # cp -a /usr/local/sb/private sitebuilder/private

  5. Create archive:

    # tar -czvf sitebuilder.tar.gz sitebuilder/

  6. Move the archive to the target node

II. Unpack and restore the data

On the target node perform the following operations as root:

  1. Unpack the archive:

    # tar --no-same-owner -xf sitebuilder.tar.gz

  2. Restore database contents:

    # mysql sitebuilder5 < sitebuilder/sitebuilder.sql

  3. Copy site files and restore site files permissions:

    # cp -af sitebuilder/sites/* /usr/local/sb/htdocs/sites/
    # chown -R wpb-fpm:wpb-fpm /usr/local/sb/htdocs/sites

    Sitebuilder was switched to php-fpm and now runs under separate user and group wpb-fpm:wpb-fpm instead of web server user and group.

  4. Copy private data and restore permissions:

    # cp -af sitebuilder/private/* /usr/local/sb/private/
    # chown -R wpb-fpm:wpb-fpm /usr/local/sb/private

  5. Upgrade the sites:

    # sw-engine /usr/local/sb/utils/upgrade.php sites

  6. Install WPB license: go to https://<sitebuilder-vhost>/License and upload the license file

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.