Retention and database maintenance
The AC keeps its state in data/ac.db (SQLite): bans, detections, audit trail, configuration history, exemptions, notes, reports, cases and ban wave. This page explains how long each thing is kept and what you can do by hand.
Automatic retention
Section titled “Automatic retention”Retention runs once an hour (and 30 seconds after the AC starts) and deletes what is old. It is on by default (retention.enabled).
| Option | Default | What it deletes |
|---|---|---|
retention.detectionsDays |
90 |
Detections older than N days. It also sets how long stored identities and player IDs are kept (at least 180 days). |
retention.auditDays |
365 |
The audit trail of staff and AC actions. |
retention.evidenceDays |
30 |
Screenshots that do not support a ban. |
retention.banEvidenceDays |
180 |
Screenshots of bans that have expired or were removed. |
retention.logsDays |
30 |
Daily log files in data/logs/. |
All of them are edited in Configuration > Modules > Retention (detections between 7 and 3650 days, audit between 30 and 3650).
What retention never deletes:
- the proof of an active ban and the proofs of anyone in the ban wave queue;
- the bans themselves and the ban history;
- proofs stored in the VIGIL AC service, which have their own retention (see Reviewing evidence).
The AC does not run VACUUM, because it would lock the database during play.
Maintenance in the panel
Section titled “Maintenance in the panel”In Analytics > Database (maintenance permission, admin by default) you see:
- the size of
data/ac.dband the rows per table; - the integrity check (
PRAGMA quick_check); - the export of detections to CSV, in
data/exports/; - manual retention: runs retention now, with the same rules (it never deletes proofs of active bans).
On a ban’s detail page (Bans, clicking the player) there is also the Dossier button (maintenance permission), which exports everything the AC knows about that serial to data/exports/ (JSON). Treat it as personal data.
Good practice
Section titled “Good practice”- Copy
data/before setting very short retention: what is deleted cannot be recovered. See Backups and restore. - If the integrity check fails, stop the server, copy
ac.dbsomewhere safe and contact support. Do not delete the file: you would lose the local ban history. - Clean
data/exports/from time to time: exports are not deleted by themselves. - If
Could not open data/ac.dbappears, thedata/folder has no write permission. See Installation problems.