Where Does Forgejo Store Repositories and Data?
Forgejo data directory with repos, app.ini config and SQLite database on Linux.
Last updated
Forgejo keeps repositories, avatars, attachments and its database under one data directory, with server behavior driven by app.ini. Backup needs both halves: files without the database lose issues and pull requests.
Package installs split config into /etc/forgejo while binary installs keep custom/conf. Confirm which layout runs before scripting backups.
Where Forgejo stores this, by platform
/var/lib/forgejo
Holds gitea-repositories with every repo, plus data for avatars, attachments and sessions. Config lives at /etc/forgejo/app.ini on packages or custom/conf/app.ini for binary installs. Stop Forgejo or snapshot the database before copying; the default SQLite file cannot be copied live safely.
Frequently asked questions
How do I back up Forgejo?
Copy the data directory plus app.ini with Forgejo stopped, or dump the database separately for live backups. Repositories alone miss issues, wikis and users.
Where is the Forgejo config file?
app.ini under /etc/forgejo for packages or custom/conf for manual installs. Check the running service to see which path it loads.
Notice an outdated path? Let us know.