Skip to content

Data folder ​

Tamamo keeps its state in one folder. In Docker it is /data inside the container, usually mounted with ./data:/data. On your host, that is the data folder next to your compose file. Stop Tamamo before you restore files or copy the ones marked "Only while stopped". To back it up, see back up and upgrade.

File or folderWritten bySafe to delete?Notes
tamamo.yamlTamamo, the web UI and the CLINoAll settings, sites, and the login hash. Back it up first.
secret.keyTamamoNoThe signing key. Deleting it signs every visitor out.
tamamo.dbTamamoOnly while stoppedStatistics in SQLite, a small database kept in one file. Created on every start, even with statistics off.
tamamo.db-wal, tamamo.db-shmSQLiteOnly while stoppedDelete them with tamamo.db, or not at all.
tamamo.db.corruptTamamoYesAn unreadable database, kept for inspection.
uploads/The web UIYes, per fileCustom images: checking, success, denied, background and favicon, as .png, .jpg, .gif or .webp. A missing image falls back to the built-in one.
modules/<name>/ModulesDepends on the moduleFiles a module keeps, one folder per entry. Created only by modules that store something. Removing an entry leaves its folder.
stats.json.migratedTamamoYesThe old statistics file, already imported.
config.json.old, rules.yaml.oldTamamoYes, after you check tamamo.yamlSettings files from an older version.
*.tmpTamamoYes, when stoppedLeft behind only if Tamamo stopped during a save.

Permissions ​

The image runs as user ID 65532. That user must be able to write to the folder. Tamamo writes tamamo.yaml with mode 0640 and secret.key with mode 0600.

On Linux, Docker creates a missing bind-mounted folder as root. Create it yourself first:

bash
mkdir data
sudo chown 65532:65532 data

Docker Desktop on Windows and macOS usually sets the owner for you. For permission denied errors, see troubleshooting.

Legacy migration ​

Tamamo reads the files of older versions only when there is no tamamo.yaml yet. It converts config.json and rules.yaml into tamamo.yaml, and renames the old files to .old. It imports stats.json into tamamo.db once, then renames it to stats.json.migrated. Stop Tamamo before you copy an old folder in.

Broken files ​

  • tamamo.yaml with a syntax error at start-up: Tamamo refuses to start and names the line.
  • tamamo.yaml broken while running: Tamamo logs could not reload the settings; keeping the running ones and keeps the previous settings. Fix the file, and Tamamo reloads it within about 2 seconds.
  • tamamo.yaml deleted while stopped: Tamamo creates a new file with defaults. Your sites, rules and login are gone.
  • secret.key empty at start-up: Tamamo creates a new key, so every visitor signs out.
  • tamamo.db not a database: Tamamo moves it and its -wal and -shm files to .corrupt, and starts with empty statistics. Settings are not affected.

Released under the MIT License.