Article ID: 114312, created on Jul 9, 2012, last review on Jun 17, 2016

  • Applies to:
  • Operations Automation 5.4
  • Plesk 12.0 for Linux
  • Plesk 11.5 for Linux


Snapshots made for the Web Presence Builder (WPB) site are stored in the publishing location of the site. If site was removed from WPB it cannot be simply uploaded to WPB. This article describes procedure to manually restore WPB site from the saved snapshot if the site was removed from WPB.


  1. Check whether there are snapshots for the site on the publishing location:

    # ls -la /var/www/vhosts/domain.tld/httpdocs/data/snapshots/
     total 252
     -rw-r--r-- 1 testcust psacln    223 Jul  1 13:34 03a21c5dbeaf22159bc109374638f61f_list.xml
     -rw-r--r-- 1 testcust psacln 250139 Jul  1 13:34 3b395edf0050931a8632de93a4d3085a.php
  2. Create a new instance of WPB site for the domain in Plesk:

    Websites & Domains, click WPB icon in the right side, matching the needed domain. Choose any template and create a site.

    Note: Do not publish it.

  3. Retrieve a new the site uuid from Plesk database:

    mysql> select dp.val as Site_uuid from dom_param dp join domains d on where  dp.param='site_builder_site_id' and'domain.tld';
     | Site_uuid                            |
     | 8f0ad6d8-485d-e553-25bd-feeef199f446 |
     1 row in set (0.00 sec)`
  4. Define the location of WPB web site:

    mysql> select dir_name from site where uuid='8f0ad6d8-485d-e553-25bd-feeef199f446';
     | dir_name                         |
     | 3e7e3cde839d2002d223f4bab58e3eea |
     1 row in set (0.00 sec)
  5. Rename the XML file, containing snapshots list to make it fit the new dir_name:

    mv /var/www/vhosts/domain.tld/httpdocs/data/snapshots/03a21c5dbeaf22159bc109374638f61f_list.xml /var/www/vhosts/domain.tld/httpdocs/data/snapshots/3e7e3cde839d2002d223f4bab58e3eea_list.xml
  6. Make sure that this list is well formed and available, according to the KB article:

    #113336 Why aren't site snapshots shown on the Revert page?

  7. Refresh the page with new site instance. Snapshots should be available now. As soon as they are available in WPB, you can restore them.

    The method is the same in POA, but the only difference is publishing location path.

    NOTE: After the snapshot is restored, there could be an additional issue with site images, because images may have old location paths in WPB database. Due to this, they may be not wisible in the restored site in WPB.

    To solve this, you can either re-upload images anew, or change paths in database:

    # mysqldump -uadmin -p`cat /etc/psa/.psa.shadow ` --disable-extended-insert  sitebuilder5 > sb_backup.sql
    grep "03a21c5dbeaf22159bc109374638f61f" sb_backup.sql|grep widget_property
    INSERT INTO `widget_property` VALUES (570,462,'content','<p><img id=\"mce-548\" style=\"float: left; margin-right: 20px;\" title=\"helloworld\" src=\"/sitebuilder/sites/03/03a21c5dbeaf22159bc109374638f61f/attachments/Image/helloworld.jpg\" alt=\"helloworld\" width=\"1631\" height=\"743\" /></p>');

    Find the strings with old paths, and replace them by new values, from




56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f 01bc4c8cf5b7f01f815a7ada004154a2 5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 614fd0b754f34d5efe9627f2057b8642 ac82ce33439a9c1feec4ff4f2f638899 2554725ed606193dd9bbce21365bed4e 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7

Email subscription for changes to this article
Save as PDF