Where Does GoatCounter Store Data?
GoatCounter keeps everything in one SQLite file named by the -db flag, defaulting beside the binary.
Last updated
GoatCounter stores sites, hits, and settings in a single SQLite database file. The db flag names it on every serve command, defaulting near the binary when omitted. No separate config file exists for self hosted installs.
Docker setups mount the file from host storage through a volume. Back up the file with the service stopped for consistent copies. Multi site installs share the same file with per site rows.
Where GoatCounter stores this, by platform
[DataDir]/goatcounter.sqlite3
Single SQLite file named by the db flag. Docker volumes remap it onto host disks. Back up with the service stopped.
Frequently asked questions
How do I back up GoatCounter?
Copy the SQLite file with the service stopped. The file holds sites and hits together. Restore by pointing the db flag at the copy.
Where is the GoatCounter config?
In command flags rather than a file for self hosted installs. Listen address and db path arrive per invocation. Wrap them in a service file.
Notice an outdated path? Let us know.