Search

Language:  
Search for:

Available article translations:

[HOW TO] How to back up and restore Web Presence Builder site with command line tool

Article ID: 113682 
Created On: Apr 11, 2012
Last Review: Nov 1, 2012
Views:
Was this article helpful?
No Yes
APPLIES TO:
  • Parallels Presence Builder
  • Parallels Plesk Panel
  • 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 and 11

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 Unix:

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

For Windows:        

"C:\Program Files\Parallels\Plesk\admin\bin\php.exe" -c "C:\Program Files\Parallels\Plesk\admin\php.ini" -dautoprependfile="" "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 Unix:

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

For Windows:

"C:\Program Files\Parallels\Plesk\admin\bin\php.exe" -c "C:\Program Files\Parallels\Plesk\admin\php.ini" -dautoprependfile="" "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 |

....

Parallels Automation for Web Presence versions 10 and 11 (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.



64d8d09669cff87d685a09b84f40c490 49af2da0f2dd4c81e962790bbbd0c2b4 64cafed7cc15bceb3b240d8c2f92dce3 f36c5c36aad86685b6f729cd4414053c 56797cefb1efc9130f7c48a7d1db0f0c caea8340e2d186a540518d08602aa065

Was this article helpful?
No Yes
 
 
 
 
 
 
For Home
For Hosters
For SaaS
For IaaS
 
Desktop Virtualization
- Parallels Desktop 8 for Mac
- Parallels Transporter
- Parallels Mobile
- Parallels Desktop Switch to Mac Edition
- Parallels Desktop for Mac Enterprise Edition
- Parallels Management-Mac for Microsoft SCCM
Server Virtualization
- Parallels Cloud Server
- Parallels Virtuozzo Containers
Automation
- Parallels Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation Standard
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
- Web Presence Builder
- Parallels Plesk Automation
- Parallels Small Business Panel
- Parallels Domain/SSL Reseller Program
- Value-added Services for Hosters
- Parallels Partner Storefront