Skip to content

Team Server backups

brtfx edited this page Aug 8, 2025 · 1 revision

Backuping

PrivMX uses mongodb to store encrypted data. If you want to backup your data, all you have to do is backup the mongo database. You can backup entire mongo instance or only the specific database. You can find name of your database in the configuration file /etc/privmx-team-server/config.json or if it is not specified, the database name is privmx_{domain} except that the dots in the domain have to be changed to an underscore, for example for domain abc.example.com database name will be privmx_abc_example_com. You can learn how to backup mongodb under https://www.mongodb.com/

Backuping whole mongodb instance

mongodump

Backuping specific database

mongodump --db privmx_abc_example_com

Restore specific database

You should drop old database before restore

mongo privmx_abc_example_com --eval "db.dropDatabase()"
mongorestore --db privmx_abc_example_com dump/privmx_abc_example_com

Clone this wiki locally