This Server: Difference between revisions
Jump to navigation
Jump to search
| Line 5: | Line 5: | ||
package playfulexploration.com { | package playfulexploration.com { | ||
component [Eth0] | |||
component [Nginx\nport: 443] as [Nginx] | component [Nginx\nport: 443] as [Nginx] | ||
component [PHP-CGI\nport: 9000] as [PHP-CGI] | component [PHP-CGI\nport: 9000] as [PHP-CGI] | ||
| Line 11: | Line 11: | ||
component [Tomcat Server\nport: 8888] as [Tomcat] | component [Tomcat Server\nport: 8888] as [Tomcat] | ||
component [NodeJS\nport: 8080] as [NodeJS] | component [NodeJS\nport: 8080] as [NodeJS] | ||
component [Postfix\nports: 25, 587, 993] as [Postfix] <<email receiver>> | |||
component [Dovecot] as [Dovecot] <<email access>> | |||
component [Postgray] as [Postgray] <<anti spam>> | |||
database Mailbox | |||
package "MediaWiki Pack" { | package "MediaWiki Pack" { | ||
| Line 16: | Line 20: | ||
[MediaWiki PHP] .. [MediaWiki PlantUML Extension] | [MediaWiki PHP] .. [MediaWiki PlantUML Extension] | ||
} | } | ||
[Eth0] .. [Nginx] : https | |||
[Nginx] .. [PHP-CGI] | [Nginx] .. [PHP-CGI] | ||
[Nginx] .. [Tomcat] | [Nginx] .. [Tomcat] | ||
[Nginx] .. [MySQL] | [Nginx] .. [MySQL] | ||
[Nginx] .. [NodeJS] | [Nginx] .. [NodeJS] | ||
[Eth0] .. [Postfix] | |||
[Postfix] .. [Dovecot] | |||
[Dovecot] .. Mailbox | |||
[Postfix] .. [Postgray] | |||
[PHP-CGI] .. [MediaWiki PHP] | [PHP-CGI] .. [MediaWiki PHP] | ||
| Line 27: | Line 36: | ||
[MySQL] .. MediaWiki_DB | [MySQL] .. MediaWiki_DB | ||
} | } | ||
WEB -- [ | WEB -- [Eth0] | ||
</uml> | </uml> | ||
Revision as of 22:09, 10 January 2016
Installed Components
Backup strategy
Postulates
- More important than having a very fancy backup mechanism is to have some backup mechanism
States and Status
Strategy A: Simple ZIP
Using ssh:
# backup changes of files and folders
#mkdir /backup
rsync -av --relative /var/www/html/wiki/LocalSettings.php /var/www/html/wiki/extensions/ /var/www/html/wiki/htmlets/ /backup/mediawiki/
# export the wikimedia database
mysqldump -h localhost -u root --xml mediawiki >/backup/mediawiki/wiki_mysql_database.xml
# zip it
zipfile="mediawiki_$(date +'%Y%m%d-%H%M%S').zip"
pushd /backup/; zip -r $zipfile mediawiki/*; popd
echo "The latest backup is in /backup/$zipfile"
Now navigate to https://www.playfulexploration.com/backup and download the zip file.
Strategy B: ...
a