Linux

Where Does ERPNext Store Sites and Config?

ERPNext site folders and config paths on Linux for Frappe based business installs. With backup tips.

Last updated

ERPNext keeps each site in a folder under sites inside the bench. Public files and private backups separate per site name. That tree grows with attachments and reports.

Connection settings live in site_config.json per site with database passwords. Records themselves live in MariaDB per that config. Back up the sites folder with database dumps. Files without the database lose their links. Workflows route approvals cleanly. Print formats brand documents. Multi currency handles exchange. Subscriptions bill on cycles.

Where ERPNext stores this, by platform

Linux
/home/frappe/frappe-bench/sites

Per site public files and private backups. The bench command manages this tree. Copy whole folder with database dumps for moves.

Linux
/home/frappe/frappe-bench/sites/site1.local/site_config.json

Database name and passwords per site. Restrict read access to the frappe user. Keep with sites backups for restores.

Frequently asked questions

what do i back up for an ERPNext move

Copy the sites folder with site_config.json and a MariaDB dump. Sites hold files and private backups. The config holds database passwords. All three restore business.

where are ERPNext site files stored

Open sites/site1.local/site_config.json to read database name and files. Attachments default under sites per site name. The file decides the backend. Keep copies safe.

Notice an outdated path? Let us know.