Search for:

Available article translations:

How to back up and restore Web Presence Builder site with command line tool

Article ID: 113682, created on Apr 12, 2012, last review on Sep 10, 2014

  • Parallels Plesk 11.5 for Linux
  • Parallels Plesk 10.4 for Linux/Unix
  • Parallels Plesk 12.0 for Windows
  • Parallels Plesk 11.5 for Windows
  • Parallels Operations Automation

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>
  • 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>

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>

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>
  • 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>
  • 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>

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 as 'domain', dom_param.val as 'site uuid' from domains, dom_param where 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>

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

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

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:


Base_SyntaxException: Invalid argument supplied for foreach()

c81e59b61af9dca603ba03b14aabe968 64cafed7cc15bceb3b240d8c2f92dce3 56797cefb1efc9130f7c48a7d1db0f0c caea8340e2d186a540518d08602aa065 9f8baf78266b4e54525d1c6bf06305a5 824237ce663843af86f93897fbd8e2f8 f4c89357a6ff7298f273cb70f9d95452 42844a8183c58f5bd71c7d59929707e6 276b42158818c83055d6dfa6371d4e4b 1d151d16e47c6f92bbf62d50eb32c4a2 4bd416dd9da208376c20e13782bef971 230ec28618f20889fbaa0a73287fbabb 51438e1dfe1e98e6ad3bf2ff9709bbbb 1bb40a2897c5fbbe5c9bd20451105ddc bb8d08f557ff7e4b314b6bbaa846b034

Was this article helpful?
Tell us how we may improve it.
Yes No
Server Virtualization
- Odin Cloud Server
- Odin Containers for Windows 6.0
- Odin Virtuozzo Containers
- Odin Automation
- Odin Automation for Cloud Infrastructure
- Odin Business Automation Standard
- Odin Virtual Automation
- Odin Plesk Panel Suite
- Web Presence Builder
- Odin Plesk Automation
- Odin Small Business Panel
- Value-added Services for Hosters
- Odin Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification