This Server: Difference between revisions

From Playful Exploration
Jump to navigation Jump to search
Line 68: Line 68:
=== Strategy A: Simple ZIP ===
=== Strategy A: Simple ZIP ===
Using ssh:
Using ssh:
<source lang='bash'>
  # backup changes of files and folders
  # backup changes of files and folders
  #mkdir /backup
  #mkdir /backup
Line 77: Line 78:
  pushd /backup/; zip -r $zipfile mediawiki/*; popd
  pushd /backup/; zip -r $zipfile mediawiki/*; popd
  echo "The latest backup is in /backup/$zipfile"
  echo "The latest backup is in /backup/$zipfile"
</source>
Now navigate to https://www.playfulexploration.com/backup and download the zip file.
Now navigate to https://www.playfulexploration.com/backup and download the zip file.


=== Strategy B: ... ===
=== Strategy B: ... ===
a
a

Revision as of 06:06, 9 January 2016

Installed Components

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.

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