Skip to content

Backup & Restore ​

CometCMS includes a built-in backup and restore system for saving CMS data to ZIP files and restoring selected parts later.

ZIP backups require the PHP zip extension. Inspection and restore accept CometCMS 2.0.0 or newer archives; pre-2.0 backups are unsupported.

Backup storage ​

Backups are stored in:

bash
cms/storage/backups/

The admin panel can list, inspect, download, delete, upload, and restore backups from this folder. Content, media, and website data are taken from the active workspace and restored into the active workspace. Users, access tokens, and webhooks are installation-wide. Select the destination workspace before restoring.

Backup and restore screen in the CometCMS admin

What can be backed up ​

When creating a backup, you can choose which parts to include:

PartDefaultDetails
Content typesOnCollection schemas and fields
Type entriesOnEntries and revision history
MediaOnUploaded files, categories, and metadata
WebhooksOnOutbound webhook URLs, secrets, and events
WebsiteOnWebsite settings, menus, theme, templates, components and installed fonts
Access tokensOnApplication access token records (hashes excluded by default)
UsersOffUser accounts and roles

Passwords & access tokens: By default, password hashes and access token hashes are stripped from backups. To include them for full account and token restore, set 'include_password_hashes' => true under 'backups' in cms/config/config.php.

Restoring ​

Before restoring, CometCMS inspects the ZIP and shows the number of content types, entries, revisions, media files, users, roles, and webhooks it contains. You then choose which available parts to restore.

Users are intentionally off by default to prevent accidentally overwriting accounts on the destination server. User restore requires a backup created with password hashes included; otherwise users are skipped because they would not be able to log in.

Admin workflow ​

  1. Go to Administration → Backups in the admin panel.
  2. Create a new backup or upload an existing backup ZIP.
  3. Inspect the backup preview.
  4. Select the parts to restore.
  5. Choose whether to overwrite existing files and records.
  6. Click Restore selected parts.

CAPTCHA credentials in workspaces/{workspace}/form-captcha.json and installation configuration are outside website ZIP backups. Configure CAPTCHA keys again on the destination. Generated media variants are omitted and rebuilt as needed.

Full filesystem backup ​

For a complete server-side backup, copy config/config.php and the entire storage/ directory via FTP or SSH:

bash
cp -r cms/storage/ /path/to/backup/storage-$(date +%Y%m%d)/

To restore, copy the saved storage back to cms/storage/ and restore config/config.php to its original location.

CometCMS Documentation