Configuring the Persistence Directory
You can specify a custom persistence directory for each database resource in your configuration file:Directory Structure
The persistence directory contains:- Database files: SQLite database files for each configured database
- Logs: Debug-level logs saved in the
ditto_logs
subdirectory - 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 or multiple apps 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.