Resolution
Content of Sitebuilder page modules (Guestbook, Registration, Image Gallery, Blog, File Download, eShop, External Page, Flash Intro, Forum) is stored on server where site is published to. So modules content (Images in Gallery, posts in Forum, eShop products, etc) would not be migrated with instructions below. Only pages content is migrated.To save modules content it is recommend to keep publishing location unchanged after migration.
Parallels Plesk Sitebuilder should be migrated from one server to another as a whole. Feature for migration of single sites and clients will be available in future version of Parallels Plesk Sitebuilder.
Before migration you need to have exactly the same configuration on new server, same version of Sitebuilder application, modules and templates. Use the scheme below for migration of Parallels Plesk Sitebuilder.
1. Copy sites directory /usr/local/sitebuilder/htdocs/sites (/opt/sitebuilder/htdocs/sites for Debian/Ubuntu) to new server. You should replace existent directory and fix permissions with script fix_permissions:
~# /usr/local/sitebuilder/utils/fix_permissions The file is /opt/sitebuilder/utils/fix_permissions for Debian and Ubuntu.
2. Copy Sitebuilder configuration file /usr/local/sitebuilder/config (/opt/sitebuilder/config for Debian/Ubuntu) to new server and correct permissions.
~# ls -l /usr/local/sitebuilder/config
-rw-r--r-- 1 root root 1788 Dec 9 11:55 /usr/local/sitebuilder/config
~#Sitebuilder configuration file is /opt/sitebuilder/config for Debian/Ubuntu.
3. Migrate Sitebuilder database sitebuilder3 to new server. You may get name of Sitebuilder database using utility sb_config:
~# sb_config --help | grep sb_db_name
--sb_db_name Sitebuilder database name [sitebuilder3]
~#4. Update hostname and IP address in Sitebuilder configuration:
~# sb_config --sb_hostname=NEW.SITEBUILDER.HOSTNAME --sb_host_ip=NEW.IP --force_update_wscfgrecreate Sitebuilder MySQL user sitebuilder_db:
~# sb_config --db_admin_name MYSQL.ADMIN.USER --db_admin_passwd MYSQL.ADMIN.PASSWORD --force_update_dbWhere MYSQL.ADMIN.USER and MYSQL.ADMIN.PASSWORD are user name and password of mysql administrator.
NOTE: Utilities sbbackup and sbrestore cannot be used for objects migration between servers.
Sitebuilder migration manager is under development now. It will be available in future version of Parallels Plesk Sitebuilder.
Additional information
For details about creation of Sitebuilder backup refer to this article http://kb.parallels.com/en/5884.Keywords: migration; backup; sbbackup; sbrestore;