---
title: "Backup and restore"
description: "What a full JSON backup contains and leaves out, and what happens when you restore one."
lang: "en"
version: "1.84.0"
url: "https://docs.calends.date/en/data/backup/"
markdown_url: "https://docs.calends.date/en/data/backup.md"
section: "Data & security"
llms_index: "https://docs.calends.date/llms.txt"
llms_full: "https://docs.calends.date/llms-full.txt"
agents_guide: "https://calends.date/AGENTS.md"
---

# Backup and restore

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

- Canonical page: https://docs.calends.date/en/data/backup/
- Markdown source: https://docs.calends.date/en/data/backup.md
- Calends version: v1.84.0

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) |

> **CAUTION**: Backups contain webhook URLs and tokens for your notification channels, the calendar feed token and shared plan members' contacts. Keep the file as safe as a password.

## 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](https://developers.cloudflare.com/d1/reference/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](https://docs.calends.date/en/self-host/docker.md#data-and-backups).

## 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.

---

## Related Pages & Global AI Discovery

To explore broader context beyond this page, fetch any of the Markdown or plain-text resources below directly:

### Same Section (Data & security)
- [Backup and restore](https://docs.calends.date/en/data/backup.md) *(current)*
- [Import data and export CSV](https://docs.calends.date/en/data/csv.md)
- [Sign-in and devices](https://docs.calends.date/en/data/sign-in.md)
- [Privacy](https://docs.calends.date/en/data/privacy.md)

### Reading Order
- Previous: [Share images](https://docs.calends.date/en/sharing/share-images.md)
- Next: [Import data and export CSV](https://docs.calends.date/en/data/csv.md)

### Global Calends Resources
- Read-only Docs MCP Server (zero auth Streamable HTTP): https://docs.calends.date/mcp
- Complete Docs Index (all 37 topics with `.md` links): https://docs.calends.date/llms.txt
- Complete English Docs Bundle (single file): https://docs.calends.date/llms-full.txt
- Complete Simplified Chinese Docs Bundle: https://docs.calends.date/llms-zh.txt
- Docs AI Agent Guide: https://docs.calends.date/AGENTS.md
- Product Website Overview (Markdown): https://calends.date/en/index.md
- Product LLMs Index & Full Reference: https://calends.date/llms.txt | https://calends.date/llms-full.txt
- Deployment & MCP Agent Guide (AGENTS.md): https://calends.date/AGENTS.md
- FAQ & Calends vs Wallos Comparison (Markdown): https://calends.date/en/faq.md | https://calends.date/en/compare.md
- Complete Changelog (Markdown): https://calends.date/en/releases.md
