PolyCMS Database Backup & Restore
The built-in Blog > Tools > Backup utility creates clean SQL snapshots of all 19 PolyCMS core tables (tblblog_*) without touching your CRM records. When PolyStore or MTOptimize is active in PolyCMS v1.4.0, full disaster recovery requires capturing those 19 CMS tables together with the 13 PolyStore InnoDB tables, tblpolycms_seo_meta, and linked Perfex CRM core tables inside one consistent MySQL snapshot.
Built-In CMS Backup Scope (19 Core Tables)
PolyCMS's native SQL backup tool under Blog > Tools > Backup exports and restores only the 19 core CMS tables (prefixed with your Perfex table prefix + blog_, typically tblblog_*). This makes it ideal for quick pre-edit checkpoints or theme/plugin testing without risking CRM invoices or client records.
| Table Group | Core PolyCMS Tables (tblblog_*) | Count |
|---|---|---|
| Content | blog_posts, blog_pages, blog_page_meta | 3 |
| Taxonomy | blog_categories, blog_tags, blog_post_categories, blog_post_tags, blog_post_meta | 5 |
| Engagement | blog_comments | 1 |
| Media | blog_media | 1 |
| Navigation | blog_menus, blog_menu_items, blog_widgets | 3 |
| Extensions | blog_plugins, blog_plugin_options, blog_themes, blog_theme_options | 4 |
| Configuration | blog_settings, blog_permalink_settings | 2 |
Creating a Core CMS Backup
Navigate to Blog > Tools > Backup in Perfex CRM Admin:
- Click Create Backup.
- PolyCMS generates an SQL dump containing schema and rows for all 19 core
tblblog_*tables. - The snapshot appears in the backup history table with creation timestamp and file size.
- Click Download to copy the
.sqlfile to off-site cloud or local storage.
Restoring Core CMS Tables
- Open Blog > Tools > Backup.
- Locate the desired snapshot in the backup list and click Restore.
- Confirm the prompt to replace the 19 core CMS tables with the snapshot contents.
Important Warning: Restoring an SQL backup overwrites all current data inside those 19 CMS tables. Always generate a fresh backup immediately before running a restore.
Full Disaster Recovery When PolyStore Is Active (v1.4.0)
Because PolyStore v1.0.0 uses a Zero-Duplication Overlay Architecture tightly linked to Perfex CRM items, clients, invoices, and estimates, backing up only the 19 tblblog_* tables is not sufficient for e-commerce disaster recovery. Restoring PolyStore tables independently of Perfex financial records can cause broken item, client, or invoice ID references.
For production sites running PolyStore, always capture the following four table groups together inside one atomic MySQL snapshot:
| Snapshot Group | Required Tables | Purpose |
|---|---|---|
| 1. PolyCMS Core (19 Tables) | All 19 tblblog_* tables listed above | Posts, storefront pages, menus, widgets, plugin/theme state, settings |
| 2. PolyStore Overlay (13 InnoDB Tables) | tblpolystore_product_meta, tblpolystore_category_meta, tblpolystore_product_categories, tblpolystore_attributes, tblpolystore_attribute_terms, tblpolystore_product_attributes, tblpolystore_product_variants, tblpolystore_product_filter_index, tblpolystore_carts, tblpolystore_orders, tblpolystore_order_items, tblpolystore_coupons, tblpolystore_coupon_usages | Products overlay, multi-category mappings, attributes, variations, faceted filter index, carts, orders, normalized line items, and coupon usages |
| 3. MTOptimize v1.4.0 SEO (Recommended) | tblpolycms_seo_meta | Stores (object_type, object_id) SEO metadata (Focus Keywords, Meta Title/Description, Open Graph, Twitter Card, Custom Canonical, and No Index/No Follow) for both Core Blog/Pages/Categories/Tags (post, page, category, tag) and PolyStore Products & Product Categories (polystore_product, polystore_category). Always include this table in every full storefront backup so product and category SEO settings stay synchronized. |
| 4. Linked Perfex CRM Core Tables | tblitems, tblitems_groups, tblinvoices, tblestimates, tblclients (recommended: full Perfex database snapshot) | Preserves referential consistency across storefront products, categories, customer accounts, issued invoices, and B2B quotes |
Recommended Atomic MySQL Snapshot Command
Use InnoDB's consistent read transaction flag (--single-transaction) with mysqldump (or your hosting panel's scheduled full-database backup) so all 19 PolyCMS tables, 13 PolyStore tables, tblpolycms_seo_meta, and Perfex Core tables reflect the exact same point in time:
mysqldump --single-transaction --quick --routines --triggers \
-u DB_USER -p DB_NAME > perfex_polycms_polystore_$(date +%F_%H%M).sql
In addition to the MySQL snapshot, back up the uploads/ directory (including uploads/polycms/ and any PolyStore digital product download files) on the same schedule so media URLs and paid digital downloads remain intact after a restore.
Operational Best Practices
- Run a fresh backup before major PolyCMS/PolyStore upgrades, bulk product imports, or theme changes.
- Keep encrypted off-site copies (object storage, S3, or remote backup server) following a 3-2-1 backup policy.
- Verify restore integrity periodically on a staging copy of Perfex CRM.
- Remember that Blog > Tools > Backup targets the 19 core
tblblog_*tables only; always schedule full-database MySQL snapshots that include the 13 PolyStore tables,tblpolycms_seo_meta(covering both core CMS and PolyStore product/category SEO), and linked Perfex CRM core tables when running PolyStore in production.
Related Documentation
- PolyCMS Architecture Overview - Complete schema map of all 19 core tables and 13 PolyStore InnoDB tables.
- Import, Export & Demo Data - Portable JSON/WXR migration tools and 1-click demo kits.
- PolyStore Native E-Commerce Plugin - Storefront setup and Perfex CRM billing integration.
- Troubleshooting Guide - Recovery procedures for common runtime issues.
Launch Your CMS for Perfex CRM — Lifetime Access for Just $19
Create blogs, pages, themes, plugins, and manage everything from one powerful unified admin panel.
Early Adopter Advantage
Current pricing reflects the module’s present feature set. As additional plugins, themes, multilingual capabilities, builders (MTBuilder), and ecosystem integrations are released, pricing may be adjusted. Early customers secure today’s price while benefiting from future updates.