This Server: Difference between revisions

From Playful Exploration
Jump to navigation Jump to search
Line 42: Line 42:
State0 : Status: Done
State0 : Status: Done
state "Strategy: Simple ZIP" as StrategyA {
state "Strategy: Simple ZIP" as StrategyA {
   state "ZIP file with backup data exists" as StateA1 <<Progressing>>
   state "ZIP file with backup data exists" as StateA1 <<Done>>
   StateA1 : Status: Progressing
   StateA1 : Status: Done
   state "Download link to ZIP file exists" as StateA2 <<New>>
   state "Download link to ZIP file exists" as StateA2 <<Progressing>>
   StateA2 : Status: Not started
   StateA2 : Status: Progressing
   StateA1 --> StateA2
   StateA1 --> StateA2
}
}

Revision as of 05:27, 4 January 2016

Adobe SVG Viewer plugin (for Internet Explorer) or use Firefox, Opera or Safari instead.

Backup strategy

Postulates

  • More important than having a very fancy backup mechanism is to have some backup mechanism

States and Status

Adobe SVG Viewer plugin (for Internet Explorer) or use Firefox, Opera or Safari instead.

Equipment

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 -p --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"