Site.pro
  • AI Website Builder
    • AI Website Builder
    • Prices
    • Online Stores
    • Collaboration
    • Website Import
    • Plugins
    • Website Builder
    • Templates
    • For Design Studios
    • Languages
    • Affiliate Program
    • Examples
    • For Domain Investors
    • We Build for You
  • Domains
  • Email
  • Accounting Software
    • Accounting Software
    • Modules
    • Prices
    • Integrations, API
    • Accounting companies (366)
    • Software integrators (48)
    • Sole Proprietor
    • Business Types
    • Invoice Recognition
    • Training
    • Affiliate Partners
    • Useful Links
  • For Resellers
    • Prices
    • White Label
    • Revenue Share
    • Panels
    • How it Works
    • Marketing Materials
    • Mass Import
    • Our Partners
    • Reselling Examples
    • Documentation
    • Free Websites
  • Learn
    • FAQ: Builder
    • Knowledge Base
    • Tutorials
    • Blog
    • Growth Hacking
    • For Hostings
    • Domainity
    • For Education
    • Accounting: Start of Work
    • Teaching Institutions (68)
    • Accounting Courses Worldwide
    • Online Course on UAE Accounting
  • AI Website Builder
    • AI Website BuilderAI creates websites for you
    • PricesGet more website builder features
    • Online StoresBuild online stores
    • CollaborationCreate websites together in real-time
    • Website ImportImport Any Website
    • PluginsBuilder plugin and functions
    • Website BuilderKey Features
    • Templates200+ Awesome Templates
    • For Design StudiosBenefits for Design Studios
    • Languages
    • Affiliate Program
    • Examples
    • For Domain Investors
    • We Build for You
  • Domains
  • Email
  • Accounting Software
    • Accounting SoftwareCloud based ERP
    • ModulesMain accounting software modules
    • Prices30 days free trial
    • Integrations, APIIntegration with external systems
    • Accounting companies (366)Choose your partner for accounting
    • Software integrators (48)Pick your integrations partner
    • Sole ProprietorAccounting of individual activities
    • Business Types
    • Invoice Recognition
    • Training
    • Affiliate Partners
    • Useful Links
  • For ResellersWhite Label
    • PricesRevenue Share. White Label
    • White LabelCustomise Builder
    • Revenue ShareEarn 50% from each upgrade
    • PanelsOne product for all platforms
    • How it WorksCloud or On-Premises
    • Marketing MaterialsVideo. Mockups. Website Blocks
    • Mass Import
    • Our Partners
    • Reselling Examples
    • Documentation
    • Free Websites
  • Learn
    • FAQ: BuilderFind Answer
    • Knowledge BaseRegarding accounting software
    • TutorialsDownload video tutorials for free
    • BlogSite.pro Blog
    • Growth HackingBoost your sales
    • For HostingsTips on marketing
    • DomainityDomain usage by country
    • For EducationTraining. Tutorials. Resources
    • Accounting: Start of Work
    • Teaching Institutions (68)
    • Accounting Courses Worldwide
    • Online Course on UAE Accounting
  • Register
    By registering, you accept our Terms of Service
  • Log in

    Log in

    New user? Create account
    Forgot password?
  • $
  • English
Server Requirements
  • Published websites
  • Site.pro IPs
Builder installation / update
On-Premises
  • Server Requirements
  • Installation
  • CRON
  • Update
  • Migration to version v4
  • Collaboration Service
  • Extra configuration
  • Manual update
  • Changing PHP version
  • Support
Plugin installation
  • Hosting Panel
    • cPanel
    • DirectAdmin
    • Plesk
    • Sentora/ZPanel
    • ISPmanager
    • InterWorx
    • Vesta
    • Hosting Controller
    • CentOS Web Panel
    • Hestia
    • LiveConfig
    • Webuzo
    • Custom hosting (API)
  • Billing Panel
    • WHMCS
    • Blesta
    • Upmind
    • Custom billing (API)
API documentation
  • Builder
    • Create session (SSO)
    • Remove existing session
    • Create website backup
    • Restore website backup
  • Templates
    • List template categories
    • List template category tags
    • List templates
    • Get page types available in templates
  • Import
    • Import website
    • Get website import status
    • Import website block
    • Get website block import status
    • Check if imported website is owned by user
  • Websites
    • Create website
    • Modify website
    • Rename website
    • Publish website
    • Edit website pages
    • Edit website settings
    • Delete website
    • Get website template
    • Get website pages
    • Get website variables
    • Get template variables
    • Get website settings
    • Add pages to website
    • Duplicate pages in website
    • Remove pages from website
  • Website Blocks
    • Create empty website
    • Modify website
    • Inspect website
    • Add empty page
    • Modify page
    • Remove page
    • Inspect page
    • Inspect composition
    • Modification descriptor structure by element type
    • Add blocks from compositions
    • Remove blocks
    • Move blocks
    • Modify blocks
    • Inspect block
  • Licenses
    • Get list of published websites
    • Get statistics of publications/openings
    • Block/unblock published website
    • Controlling IP list
    • Read/add/delete hosting plans
  • Integration with your system
    • Allow/disallow domain in builder
    • Check if domains are allowed in builder
  • FAQ
    • Get posts
    • Get categories
Add-ons documentation
  • For Website
    • Public demo URL
    • Editing plans
    • User registration from public demo
    • Website import
    • Generate with AI
  • For Builder
    • Adding custom templates
    • Adding custom builder plugins
    • Scripts
For developers
  • Programming reference
  • Directory structure
  • Meta information (main.json)
  • Frontend logic (main.js)
  • Element template (main.html)
  • Backend logic (main.php)
  • Plugin testing
  • Custom element plugin
  • E-commerce plugin
  • Overriding UI
  • Other examples
Change Log
API documentation → Builder

Restore website backup available since version 4.0.0 / 3.7.316 On-Premises

Reference:

  • Restore from backup file
  • Restore from published website
  • Troubleshooting

Restore from backup file

Restores site backup from local file or remote URL.

[API URL will appear after you log in or sign up]
HTTP Basic
[API Username will appear after you log in or sign up]
[API Password will appear after you log in or sign up]
POST
application/json
application/json

Request JSON Object Properties:

  • String - domain name used to identify web-site witch will be restored from backup (required).
  • String - absolute path inside builder server or absolute external URL to backup file to restore from (required).

On success you will get JSON encoded object as response. HTTP response code should be 200.

Response on Success JSON Object Properties:

  • Boolean - it will be equal to true to indicate success.

Response on Error JSON Object Properties:

On error you will get JSON encoded object as response. HTTP response code should be something other than 200.

  • Object - error description object (only on error). Error object structure:
    • Number - error code
    • String - text describing the error

Request example:

POST /api/restore-site-backup HTTP/1.1
Host: 
Authorization: Basic W0FQSSBVc2VybmFtZSB3aWxsIGFwcGVhciBhZnRlciB5b3UgPGEgaHJlZj0iamF2YXNjcmlwdDp2b2lkKDApIiBjbGFzcz0iYnRuLWxvZ2luLXRyaWdnZXIiPmxvZyBpbjwvYT4gb3IgPGEgaHJlZj0iamF2YXNjcmlwdDp2b2lkKDApIiBjbGFzcz0iYnRuLXJlZ2lzdGVyLXRyaWdnZXIiPnNpZ24gdXA8L2E+XTpbQVBJIFBhc3N3b3JkIHdpbGwgYXBwZWFyIGFmdGVyIHlvdSA8YSBocmVmPSJqYXZhc2NyaXB0OnZvaWQoMCkiIGNsYXNzPSJidG4tbG9naW4tdHJpZ2dlciI+bG9nIGluPC9hPiBvciA8YSBocmVmPSJqYXZhc2NyaXB0OnZvaWQoMCkiIGNsYXNzPSJidG4tcmVnaXN0ZXItdHJpZ2dlciI+c2lnbiB1cDwvYT5d
Content-Type: application/json

{
    "domain": "site-to-restore.com",
    "file": "/mnt/backup_storage/site-to-restore.com_project.sitebuilder"
}

Response on success example:

HTTP/1.1 200 OK
Content-Type: application/json

{"ok": true}

Response on error example:

HTTP/1.1 500 Internal Error
Content-Type: application/json

{"error": {"code": 1, "message": "some kind of error message"}}

Restore from published website

Every published website contains builder project files, which can be restored in the builder when needed. This is a 100% accurate restoration, which reverts the project that was in the builder at the time of the last publication.
In order to restore it to the builder, take the following steps:

  1. locate the following 2 folders in the published website:
    • [public_html]/sitepro/dat
    • [public_html]/sitepro/gallery
    * where change [public_html] to the real path of the published website on hosting
  2. locate the directory of that project in the builder:
    [builder]/data/e/x/example.com/
    * where change [builder] to the real path of your on-premises builder installation, change "example.com" to the website domain that needs to be restored, and change the part "/e/x/" to the 1st and 2nd symbols of the name of that domain
  3. clear the builder project directory if it is not empty:
    rm -rf [builder]/data/e/x/example.com/*
  4. copy 2 needed folders from the published website to the project directory in the builder
    * it can be done via SSH, FTP or other file manager that you prefer
  5. if necessary, update permissions of copied folders with "chown":
    chown -R user:group [builder]/data/e/x/example.com
    * where change "user" and "group" to real user and group of your builder installation

After that, when opening the builder, the correct project should be loaded.

© Site.pro 2011. Website Builder. United States.
Contact SalesTerms of ServicePrivacy Policy