The Edge Server stores all persistent data including database files, logs, and local state in a configurable directory. By default, this directory is created in the current working directory where the Edge Server is launched.Documentation Index
Fetch the complete documentation index at: https://docs.ditto.live/llms.txt
Use this file to discover all available pages before exploring further.
Configuring the Persistence Directory
You can specify a custom persistence directory in your database configuration:Directory Structure
The persistence directory contains:- Database files: SQLite database files for each configured database
- Logs: Debug-level logs saved in the
ditto_logssubdirectory - Temporary files: Cache and temporary data used during synchronization
Docker Persistence
When running with Docker, mount a volume to persist data between container restarts:Best Practices
- Use absolute paths: Always specify absolute paths for the persistence directory to avoid confusion about the working directory.
- Ensure write permissions: The Edge Server process must have write permissions to the specified directory.
- Separate data by instance: If running multiple Edge Server instances on the same machine, use different persistence directories for each.
- Monitor disk space: Database files and logs can grow over time, so monitor available disk space.