Difference between revisions of "Wiki.frontyardprojects.org"

From frontyard
Jump to: navigation, search
m (Equivalentideas moved page Wiki.frontyardprojects.org? to Wiki.frontyardprojects.org: The question mark makes it really unpredictable to link to this)
(Add Julian’s backup notes)
Line 9: Line 9:
  
 
This wiki is hosted (where?). If you need to ssh into the server to access the actual files that make up the installation, you'll find the files at <code>/var/www/html/mediawiki</code>.
 
This wiki is hosted (where?). If you need to ssh into the server to access the actual files that make up the installation, you'll find the files at <code>/var/www/html/mediawiki</code>.
 +
 +
== Backing up this Wiki ==
 +
1. Use mysqldump to make a backup
 +
 +
https://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki#Mysqldump_from_the_command_line
 +
2. You’ll want to save to a different filename every time, e.g.
 +
nice -n 19 mysqldump -u $USER --password=$PASSWORD $DATABASE -c | nice -n 19 gzip -9 > ~/backup/wiki-$DATABASE-$(date '+%Y%m%d').sql.gz
 +
You can skip the “nice -n 19” parts of this command, but the useful part is the date.
 +
 +
3. Test that the backup works
 +
 +
https://www.mediawiki.org/wiki/Manual:Restoring_a_wiki_from_backup
 +
 +
I’m not super clear on how to test.
 +
 +
4. Passwords are hashed and salted, so it’s probably ok. Use scp/sftp to copy, e.g.
 +
 +
scp wikifile.gz remote.server:~/backups/
 +
 +
5. You can put all that in a batch script and then use crontab. See
 +
 +
https://www.mediawiki.org/wiki/User:Flominator/Backup_MW

Revision as of 05:14, 30 June 2018

The Frontyard wiki, this wiki, was inspired by the Lifepatch wiki. Luke Bacon and Alexandra Crosby visited Lifepatch in December 2017 as part of a research trip into Java based independent libraries and neighborhood commoning projects.

Who gets an account?

Who gets the keys to the wiki? This wiki is open to the frontyard community. Access to the wiki works on the same basic as access to the space. You need to sign the Memorandum of Understanding.


Configuring the wiki installation

This wiki is hosted (where?). If you need to ssh into the server to access the actual files that make up the installation, you'll find the files at /var/www/html/mediawiki.

Backing up this Wiki

1. Use mysqldump to make a backup

https://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki#Mysqldump_from_the_command_line 2. You’ll want to save to a different filename every time, e.g.

nice -n 19 mysqldump -u $USER --password=$PASSWORD $DATABASE -c | nice -n 19 gzip -9 > ~/backup/wiki-$DATABASE-$(date '+%Y%m%d').sql.gz

You can skip the “nice -n 19” parts of this command, but the useful part is the date.

3. Test that the backup works

https://www.mediawiki.org/wiki/Manual:Restoring_a_wiki_from_backup

I’m not super clear on how to test.

4. Passwords are hashed and salted, so it’s probably ok. Use scp/sftp to copy, e.g.

scp wikifile.gz remote.server:~/backups/

5. You can put all that in a batch script and then use crontab. See

https://www.mediawiki.org/wiki/User:Flominator/Backup_MW