Files
deardiary/docs/src/content/docs/features/export-import.mdx
lotherk 0bdd71a4ed feat: v0.1.0 - geolocation capture, calendar, search, Starlight docs site
- Automatic browser geolocation capture on event creation
- Reverse geocoding via Nominatim API for place names
- Full-text search with SQLite FTS5
- Calendar view for browsing past entries
- DateNavigator component for day navigation
- SearchModal with Ctrl+K shortcut
- QuickAddWidget with Ctrl+J shortcut
- Starlight documentation site with GitHub Pages deployment
- Multiple AI provider support (Groq, OpenAI, Anthropic, Ollama, LM Studio)
- Multi-user registration support

BREAKING: Events now include latitude/longitude/placeName fields
2026-03-27 02:27:55 +00:00

73 lines
1.4 KiB
Plaintext

---
title: Export & Import
description: Backup and restore your data
sidebar:
order: 6
---
## Why Export?
Regular exports ensure you never lose your data:
- Backup to external storage
- Migrate to new server
- Keep offline archive
## Export Format
Exports are JSON files containing:
```json
{
"version": "0.0.6",
"exportedAt": "2024-01-15T10:30:00Z",
"settings": { ... },
"events": [ ... ],
"journals": [ ... ],
"tasks": [ ... ]
}
```
### Included Data
- **Settings** - AI provider, model, custom prompts
- **Events** - All event data including location
- **Journals** - All generated diary pages
- **Tasks** - Generation history for debugging
## How to Export
1. Go to **Settings**
2. Scroll to **Data Management**
3. Click **Export Data**
4. Save the JSON file
## Import
### Version Compatibility
- Minimum supported: 0.0.3
- Current version: 0.0.6
Older exports may lose some data or fail to import.
### Import Steps
1. Go to **Settings** → **Data Management**
2. Click **Import Data**
3. Select your JSON export file
4. Review the preview (imported/skipped counts)
5. Click **Confirm Import**
### Duplicate Handling
- **Events**: Skipped if identical (date + content + timestamp)
- **Journals**: Skipped by date
- **Tasks**: Linked to existing journals
## Danger Zone
:::caution
The **Reset Account** option in Danger Zone deletes ALL your data except settings. Use with extreme caution!
:::