Backup & Restore
Backing Up Data
- Go to Settings (right-click PageMod icon → Options).
- Find the "Backup & Restore" section.
- Click "Export Backup". Your browser will download a JSON backup file.
What the backup includes:
- All user scripts (metadata + full code)
- All apps (metadata + full HTML)
- App localStorage data
- OpenCode connection config (including API Key)
- Model provider configs (including API Keys)
The backup file is versioned to ensure forward compatibility.
Restoring Data
- Go to Settings → "Backup & Restore" section.
- Click "Import Backup" and select a previously exported JSON backup file.
- Choose a merge strategy:
- Complete Replace: Fully replaces all current data with the backup. Best for migrating to a new device.
- Merge (Keep Local): On conflicts (same-named scripts/apps), keeps the local version. Best for partial recovery.
- Merge (Backup Priority): On conflicts, overwrites local with the backup version. Best for restoring from an old device.
- Confirm to import.
Use Cases
- Device Migration: Export from old device → import on new device (choose "Complete Replace").
- Regular Backups: Periodically export backups to prevent data loss.
- Share Scripts: Backup files can be shared with other users for import.
Important Notes
- Backup files contain sensitive information like API Keys. Keep them secure and don't share with untrusted parties.
- Uninstalling the extension deletes all local data. Back up beforehand.
- Chrome browser sync may partially sync extension data but is not guaranteed; manual backup is recommended.