Skip to content

Data and Backups

iamolmez edited this page Jul 16, 2026 · 1 revision

Data and Backups

Folder layout

plugins/OlDelivery/
├── config.yml
├── lang/
│   ├── messages_en.yml
│   └── messages_tr.yml
├── database/
│   ├── delivery.db
│   ├── legacy-data.yml
│   └── backups/
└── logs/
    └── audit.yml

SQLite storage

The database contains active state, end times, personal/shared/Town progress, contributors, completed players, accepted Town contracts, statistics, pending rewards, and claimed-reward protection.

SQLite JDBC is loaded through Paper's runtime library mechanism.

Automatic backups

Defaults:

backup:
  enabled: true
  interval-hours: 6
  keep-count: 10

Backups are created under database/backups. Older files beyond the retention limit are deleted automatically.

Legacy migration

Old root-level data.yml, database, backup, language, and audit locations are migrated into the organized directory structure. Imported data.yml is archived as database/legacy-data.yml.

Manual recovery

  1. Stop the server.
  2. Back up the current OlDelivery folder.
  3. Replace database/delivery.db with a known-good backup.
  4. Start the server and verify active tasks and statistics.

Never replace or copy a live SQLite database while the server is writing to it.

Clone this wiki locally