Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
MongoDB
(view source)
Revision as of 15:26, 14 November 2021
419 bytes added
,
15:26, 14 November 2021
no edit summary
Line 174:
Line 174:
Then change your repo, and then upgrade mongo.
Then change your repo, and then upgrade mongo.
+
===Backup with system===
+
+
With credit to Daniel Berteaud
+
+
Action script to dump the mongo DB on pre-backup event
+
+
mkdir -p /home/e-smith/db/mongo
+
+
cat <<_EOF > /etc/e-smith/events/actions/mongodb-dump
+
#!/bin/bash -e
+
/usr/bin/mongodump --quiet --out /home/e-smith/db/mongo/
+
_EOF
+
+
chmod +x /etc/e-smith/events/actions/mongodb-dump
+
cd /etc/e-smith/events/pre-backup
+
ln -s ../actions/mongodb-dump ./S60mongodb-dump
===Vaporise or reinitialise the database===
===Vaporise or reinitialise the database===
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