Backups & Rolling Back
The backup WP Zbridge Pro saves before each sync, and how to roll back to it.
Backups & Rolling Back PRO
Section titled “Backups & Rolling Back ”Automatic Backup Before Each Sync
Section titled “Automatic Backup Before Each Sync”Every time you click Sync to Zaraz, WP Zbridge:
- Reads your current Zaraz configuration with
GET /client/v4/zones/{zone_id}/settings/zaraz/config. - Saves a dated copy in your WordPress database, in the
wp_zaraz_backupsoption.
The last 5 backups are kept.
Roll Back Last Sync
Section titled “Roll Back Last Sync”After a sync, the Cloudflare & Edge tab shows Roll back last sync under the Sync to Zaraz button, with the date and time of the sync.
Clicking it puts back the Zaraz configuration saved just before that sync. On zones that use Zaraz’s Preview & Publish workflow, WP Zbridge also publishes it; on other zones it is live at once.
- Changes made in the Cloudflare dashboard since the sync are undone too.
- Setup Health then reports that Zaraz has an older container. Sync again when you want your current settings back in Zaraz.
Older Versions
Section titled “Older Versions”For anything older than the last sync, use the version history Cloudflare keeps:
- In the Cloudflare dashboard, open Zaraz and go to History.
- Choose an earlier version and restore it.
See Cloudflare’s Zaraz versions & history documentation.