Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
Rocket Chat:Contrib
(view source)
Revision as of 15:51, 5 March 2017
332 bytes added
,
15:51, 5 March 2017
→Mongo DB examples
Line 240:
Line 240:
==Mongo DB examples==
==Mongo DB examples==
+
+
===Usage===
Example using mongo itself:
Example using mongo itself:
Line 256:
Line 258:
db.rocketchat_settings.update({"_id" : "From_Email"}, {$set: {"value":"admin@yourdomain.com"}})
db.rocketchat_settings.update({"_id" : "From_Email"}, {$set: {"value":"admin@yourdomain.com"}})
db.rocketchat_settings.update({"_id" : "SMTP_Host"}, {$set: {"value":"mail.yourdomain.com"}})
db.rocketchat_settings.update({"_id" : "SMTP_Host"}, {$set: {"value":"mail.yourdomain.com"}})
+
+
===Database Backup===
+
+
You can dump the tables to a directory of your choice:
+
+
mongodump --dumpDbUsersAndRoles -d rocketchat -o /root/rocketchatmongo
+
+
===Database Restore===
+
+
You can restore you database as follows:
+
+
mongorestore --restoreDbUsersAndRoles -d rocketchat -dir /root/rocketchatmongo/rocketchat --quiet
==Node usage==
==Node usage==
ReetP
Bureaucrats
,
Administrators (Semantic MediaWiki)
,
Curators (Semantic MediaWiki)
,
Administrators
877
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search