Article ID: 113682, created on Apr 12, 2012, last review on Jun 17, 2016

  • Applies to:
  • Operations Automation
  • Web Presence Builder 11.5
  • Web Presence Builder 12.0
  • Plesk 12.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 10.4 for Linux/Unix
  • Plesk 12.5 for Windows
  • Plesk 12.0 for Windows
  • Plesk 11.5 for Windows

Purposes of site snapshot in Web Presence Builder

While working on the content and design of a website, you can save several copies of each site to the server and restore sites from the saved copies (also referred to as snapshots). Saving site copies can be useful in the following cases:

  • You want to prepare several versions of the same website so that you can later load them for review, choose the best-designed or the most appropriate version, and publish it to the Internet.

  • You want to make significant changes to or experiment with the site's design or content with the option to safely undo the changes, should anything go wrong.

Web Presence Builder application for Parallels Plesk Panel (PP) versions 10.x, 11.x and 12.x

The best way to back up and restore a site created with Web Presence Builder is to dump and restore the whole domain with Plesk Backup Manager.

Additionally, a site snapshot may be created and restored with the command line utility bru.php.

Using the following command, you may create a snapshot of the site with <uuid>:

  • For Linux:

    /usr/local/psa/bin/sw-engine-pleskrun /usr/local/sb/utils/bru.php --backup --target=site --uuid=<uuid> --file=file.zip
    
  • For Windows (10.x and 11.5x versions):

    "C:\Program Files\Parallels\Plesk\admin\bin\php.exe" -c "C:\Program Files\Parallels\Plesk\admin\php.ini" -dauto_prepend_file="" "C:\Program Files\Parallels\Plesk\Sitebuilder5\utils\bru.php" --backup --target=site --uuid=<uuid> --file=file.zip
    

Please note that since 12 version of Plesk the location of php.ini file on Windows Operating Systems has changed, currently it is located in "%plesk_dir%\admin\conf\", therefore the example of backup command looks like this:

  • For Windows (12.x version):

    "C:\Program Files\Parallels\Plesk\admin\bin\php.exe" -c "C:\Program Files\Parallels\Plesk\admin\conf\php.ini" -dauto_prepend_file="" "C:\Program Files\Parallels\Plesk\Sitebuilder5\utils\bru.php" --backup --target=site --uuid=<uuid> --file=file.zip
    

Here are the commands to restore the snapshot:

  • For Linux:

    /usr/local/psa/bin/sw-engine-pleskrun /usr/local/sb/utils/bru.php --restore --target=site --uuid=<uuid> --file=file.zip
    
  • For Windows(10.x and 11.x versions):

    "C:\Program Files\Parallels\Plesk\admin\bin\php.exe" -c "C:\Program Files\Parallels\Plesk\admin\php.ini" -dauto_prepend_file="" "C:\Program Files\Parallels\Plesk\Sitebuilder5\utils\bru.php" --restore --target=site --uuid=<uuid> --file=file.zip
    
  • For Windows(12.x version):

    "C:\Program Files\Parallels\Plesk\admin\bin\php.exe" -c "C:\Program Files\Parallels\Plesk\admin\conf\php.ini" -dauto_prepend_file="" "C:\Program Files\Parallels\Plesk\Sitebuilder5\utils\bru.php" --restore --target=site --uuid=<uuid> --file=file.zip
    

NOTE: In both Linux and Windows, a site's uuid is stored in the table dom_param of the Parallels Plesk Panel database. Execute the following query to get a site's uuid with the name of the PP domain:

mysql> select domains.name as 'domain', dom_param.val as 'site uuid' from domains, dom_param where domains.id=dom_param.dom_id and dom_param.param='site_builder_site_id';
+------------------------------+--------------------------------------+
| domain                       | site uuid                            |
+------------------------------+--------------------------------------+
| plesk10.domain.tld           | 375c7bff-5f73-4437-5fa4-2c0aa7179c39 |
....

The following command will show you the help

/usr/local/psa/bin/sw-engine-pleskrun /usr/local/sb/utils/bru.php help

Web Presence Builder Standalone versions 10.x, 11.x

Use the same method with bru.php from the previous chapter with specifying /usr/bin/sw-engine instead of sw-engine-pleskrun , for example to backup a site you should use the following command:

# /usr/bin/sw-engine /usr/local/sb/utils/bru.php --backup --target=site --uuid=<uuid> --file=file.zip

And to restore a site from file.zip you should run the following command:

# /usr/bin/sw-engine /usr/local/sb/utils/bru.php --restore --target=site --uuid=<uuid> --file=file.zip

Parallels Automation for Web Presence versions 10.x and 11.x (APS package Web Presence Builder)

A site snapshot may be created and restored through GUI only. The utility bru.php is not tested for APS package Web Presence Builder versions 10 and 11.

Additional Information

[HOW TO] How to back up and restore a site with Web Presence Builder through GUI

Important: A snapshot created with the command line tool is not equal to a snapshot created through GUI.

Search Words

snapshot2wst.php

Unexpected server behavior

web presence builder issue

invalid snapshot

backup wpb

Base_SyntaxException: Invalid argument supplied for foreach()

saving

n/a

Cannot launch Web Presence Builder: "Unexpected server behavior"

sitebuilder not loading

a914db3fdc7a53ddcfd1b2db8f5a1b9c 5356b422f65bdad1c3e9edca5d74a1ae 56797cefb1efc9130f7c48a7d1db0f0c caea8340e2d186a540518d08602aa065 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f bd7fc88cf1b01f097749ae6f87272128 85a92ca67f2200d36506862eaa6ed6b8 e8756e9388aeca36710ac39e739b2b37 dd0611b6086474193d9bf78e2b293040 ed7be2b984f9c27de1d2dc349dc19c6d a766cea0c28e23e978fa78ef81918ab8 46a8e394d6fa13134808921036a34da8 01bc4c8cf5b7f01f815a7ada004154a2 614fd0b754f34d5efe9627f2057b8642 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 18f5eb2d7a7972323627b40f015d5a19 9305481d3bd31663b68451e3bfdec5a5 8b661cab116c79dbe6c4ac5bbdf1c8cb 1c99f07514acb28df1f1cbc138d5c135

Email subscription for changes to this article
Save as PDF