Backup and restore

What a full JSON backup contains and leaves out, and what happens when you restore one.

On this page

Export your ledger before moving deployments or making major changes, and review what restoration replaces.

A full backup contains JSON metadata; choose the option to include files to export a ZIP with the JSON and file content. JSON alone does not contain file bytes. Import it into a brand-new deployment and subscriptions, payment methods, people, settings and exchange rates can be restored. Moving between deployment types (Docker to Cloudflare, say) or servers relies on it.

Export

  1. Open Settings → Data and click Export full backup.
  2. Keep the downloaded calends-backup-YYYY-MM-DD.json and check that it exists. Store it securely.
Included Not included
All subscriptions, with phases, price history, linked subscriptions, charges, shared plan members and payments, and paid-for records Your password and passkeys
Payment methods, with balances and top-ups Sign-in sessions
The people list MCP tokens (they’re credentials; create new ones on a new deployment)
Settings, including notification channels, the calendar feed token, categories and avatar The built-in assistant’s provider API key and chat history; automatic-backup configuration and status
Current and all historical exchange rates Reminder send log and interface preferences (views, sorting, theme and similar choices)

Restore

  1. Export a full backup of your current ledger first.
  2. Under Settings → Data, choose Restore from backup and select the JSON or files ZIP.
  3. Review its date, format, subscription count and payment method count, then click Replace current ledger.
  4. Check subscriptions, wallet, people and notification settings. On a new deployment, create new MCP tokens.

Restoring replaces everything:

  • subscriptions, payment methods, people and settings are replaced with the backup’s; when the backup has a nonempty settings object, missing settings return to defaults. Older backups with no settings leave current settings unchanged;
  • historical exchange rates are merged by date, with the backup winning on the same day;
  • your password, passkeys, signed-in devices and MCP tokens stay as they are.

Restoring can’t be undone. Export a backup of the current ledger first.

Older backups

Backups from early versions can still be imported; they’re labeled “Legacy backup: subscriptions and payment methods only”. For backups without a people list, people are rebuilt from shared plan members’ and paid-for names. Backups in a newer format than your version are refused — upgrade Calends first.

File metadata is restored with current-format backups; the ZIP also restores file content. Older backups without file metadata retain current files. Automatic backups contain JSON metadata only, so back up object storage or the full data volume separately.

Automatic backups

Open Settings → Data → Automatic backup, choose S3 or WebDAV, enter the destination credentials and an encryption passphrase, then set how many backups to keep (1–365). S3-compatible services include AWS S3, Cloudflare R2, B2, MinIO and RustFS; WebDAV works with services such as Nextcloud and Synology.

The browser derives a key from your passphrase; backups are compressed and encrypted with AES-256-GCM before upload. Keep the passphrase separately: select an encrypted file through Restore from backup and enter the passphrase to decrypt it in your browser. Ordinary JSON backups still follow the same restore flow. Automatic-backup configuration and status are excluded from full backups and unavailable to AI/MCP.

The scheduler checks every 15 minutes. After a successful backup, changes become eligible after one hour, or the ledger is checked again after one day; identical content is not uploaded again. Old automatic files beyond your retention count are removed. While automatic backup is enabled, restoring or replacing a ledger first backs up the current one; if that backup fails, replacement is refused.

Database backups

On Cloudflare you can use D1’s built-in Time Travel to restore the database to a point in time; on Docker, back up the data volume regularly, and on Linux (systemd) back up /var/lib/calends — see Docker and systemd.

Move to another deployment

  1. Export the old deployment’s full backup and initialize the new deployment with a password.
  2. Restore the backup on the new deployment; compare subscription, payment-method and People counts, then spot-check older phases and payments.
  3. Set the new deployment’s SITE_URL and review public-page visibility and notification destinations.
  4. Add Passkeys for the new domain, create new MCP tokens, and replace the calendar subscription URL in clients. Test reminders only after checking recipients.
  5. Keep the original deployment and backup until the new one is verified. Avoid entering new records in both ledgers while moving.

The backup includes public-page layout, linked subscriptions and separate-settlement links, while CSV does not. A restore preview validates the format and counts; it is not a field-by-field accounting reconciliation.