python3 -m synapse.app.homeserver --generate-config --server-name example.com --report-stats=no --data-directory /var/lib/matrix-synapse

Category: Matrix & Synapse

python3 -m synapse.app.homeserver --generate-config --server-name example.com --report-stats=no --data-directory /var/lib/matrix-synapse

Generate config with a custom data directory

Variant of config generation that opts out of usage statistics with --report-stats=no and stores the SQLite database, media store, and uploads under --data-directory instead of the current folder. Keep that directory backed up: it holds all user content and history. The plain --generate-config form keeps data in the working directory.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.