Where Does Invoice Ninja Store Data and Config?
Invoice Ninja generated documents and env secret paths for self-hosted billing on Linux servers. Plus migration notes.
Last updated
Invoice Ninja keeps generated documents in a storage folder inside the web root. Invoices, quotes, and logos land there per company. That folder is the bulk of disk growth on busy installs.
Settings live in a .env file at the web root with database passwords and APP_KEY. The key encrypts gateway tokens, so keep the original on restore. Back up storage, the env file, and a database dump together for moves. Client portals share invoices by link. Recurring billing runs from the scheduler cron entry.
Where Invoice Ninja stores this, by platform
/var/www/invoiceninja/storage
Generated PDFs, logos, and caches per company. Serve with web user ownership. Copy whole tree with the database for migration.
/var/www/invoiceninja/.env
Database credentials, APP_KEY, and mail settings for the install. Restrict read access to the web user. Changing APP_KEY breaks gateway tokens.
Frequently asked questions
what do i back up for an Invoice Ninja move
Copy the storage folder with the .env file and a database dump. Storage holds invoices and logos. The env holds APP_KEY and mail settings. All three restore billing.
where are Invoice Ninja settings configured
Open the .env file in the web root to read database and mail blocks. PDFs generate into storage per company. The file decides which database the documents belong to.
Notice an outdated path? Let us know.