-
Notifications
You must be signed in to change notification settings - Fork 0
Team Server backups
brtfx edited this page Aug 8, 2025
·
1 revision
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/
mongodump
mongodump --db privmx_abc_example_com
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