Export & Import
Your data belongs to you. Export everything anytime, import to restore or migrate.
Export
Go to Settings and click Export Data. This downloads a JSON file containing:
- version - DearDiary version
- exportedAt - Timestamp
- settings - Your AI and app settings
- events - All event records with metadata
- journals - All diary pages
- tasks - Generation history
Import
Go to Settings and click Import Data. Select your export file.
Import Behavior
- Duplicates skipped - Events matched by date + content + timestamp
- Journals matched by date - Won't create duplicate diaries
- Tasks linked to journals - Generation history preserved
- Settings overwritten - Your current settings are replaced
Version Compatibility
DearDiary checks export versions:
- Minimum supported: 0.0.3
- Warnings shown for older/newer versions
- May lose data with very old exports
Tip: Export regularly as a backup. Store exports in a safe place.
Why Export?
- Backup - Protect against data loss
- Migration - Move to a new server
- Privacy - Keep a local copy
- Analysis - Work with your data in other tools
Export Format
{
"version": "0.1.0",
"exportedAt": "2026-03-27T12:00:00Z",
"settings": {
"aiProvider": "groq",
"aiApiKey": "gsk_xxx",
...
},
"events": [
{
"id": "evt_xxx",
"date": "2026-03-27",
"type": "text",
"content": "Had coffee with Sarah",
"latitude": 40.7128,
"longitude": -74.0060,
"placeName": "New York, NY",
"createdAt": "2026-03-27T08:30:00Z"
}
],
"journals": [...],
"tasks": [...]
}