How to define the path for .n8n with the command n8n?

I’m cross posting my question because the issue is related to Cloudron environment but the knowledge on how to solve is highly probably here.

Describe the issue/error/question

I need to specify a path for the .n8n file because root and Cloudron user are both on a read-only filesystem.

/app/code/node_modules/n8n/bin/n8n export:workflow --backup --output=/app/data/user/backups/

Error exporting workflows. See log messages for details.
EROFS: read-only file system, mkdir ‘/home/cloudron/.n8n’

Hi @JOduMonT, .n8n would be a folder. Its location can be configured by setting the N8N_USER_FOLDER environment variable.