HousingWiki:About: Difference between revisions

no edit summary
imported>Tmccormick
No edit summary
imported>Tmccormick
No edit summary
Line 14:
 
 
 
 
== '''Sponsorship''' ==
Line 47 ⟶ 48:
Contributing Editor:&nbsp;<br/> [[User:Eaymer|Elise Aymer]], Toronto.<br/> + You.&nbsp;
 
&nbsp;
 
== '''Editing/Creating pages''' ==
Line 52 ⟶ 54:
open to anyone, requires account with email confirmation.&nbsp;<br/> New content/edits go&nbsp;live immediately, though may be reviewed and changed by editors later. &nbsp;Change logs are reviewed regularly.&nbsp;
 
&nbsp;
 
=== Editing tips & tricks ===
Line 69 ⟶ 72:
== '''Installation details''' ==
 
To see current complete installation details, see special page:&nbsp;[http://www.yimby.wiki/wiki/Special:Version [1]].
 
Summary:&nbsp;
 
MediaWiki 1.26.31<br/> + [https://www.mediawiki.org/wiki/Extension:WYSIWYG WYSIWYG extension] (WYSIWYG-CKeditor 1.27,&nbsp; CKEditor 4.5.9) for visual editor.&nbsp;<br/> + [https://www.mediawiki.org/wiki/Manual:Short_URL ShortURL] url rewriting set up.&nbsp;<br/> + [https://www.mediawiki.org/wiki/Extension:MobileFrontend MobileFrontend] extension to improve reading/editing on mobile&nbsp;<br/> &nbsp;&nbsp; (note, this means some pages like site Main page have an alternate mobile version, for example to show logo which would otherwise not appear on Main in mobile view;&nbsp;so changes to that page need to be edited in both the normal place and a second section below, enclosed in tags. See [https://www.mediawiki.org/wiki/Thread:Extension_talk:MobileFrontend/Can_i_hide_some_content_from_the_desktop-view_and_show_it_ONLY_in_mobile_View? note on how].&nbsp;<br/> + [https://www.mediawiki.org/wiki/Extension:InputBox InputBox] extension to make it easier / more obvious how ot create a new page.&nbsp;<br/> + Duplicator<br/> + Nuke<br/> + EmbedVideo<br/> + GoogleDocTag<br/> + Google Analytics
 
&nbsp;
 
== Manual backup procedure ==
 
Note: this is currently running automatically daily using a Crontab job on server, except for the part of transferring backup files back to a personal account for personal and Google Drive backup copy. But if you need to do it manually or reset up the Crontab job, below are the commands,&nbsp; shown prefaced by the shell prompt '%':&nbsp;
<pre>% ssh yimbywiki@yimby.wiki</pre>
 
now enter password for account 'yimbywiki'.&nbsp;
<pre>% php yimby.wiki/maintenance/dumpBackup.php --full | gzip > ~/backup/wiki-yimby_wiki-XML-$(date +%Y%m%d).xml.gz</pre>
 
that puts a date-labeled backup file X.xml.gz into /backup
<pre>% cd backup
 
% tar -zcvf "$(date '+%F').tar.gz" /home/yimbywiki/yimby.wiki
 
% mysqldump -u yimbywiki --password=XXXXXXXX --host=mysql.yimby.wiki yimby_wiki -c | gzip > ~/backup/wiki-yimby_wiki-$(date '+%Y%m%d').sql.gz</pre>
 
[note: replace XXXXXXXX with real database password].&nbsp;
 
To then retrive these backup files to personal computer, to store backups there and automatically on Google Drive:&nbsp;
 
Open terminal window.&nbsp;
 
Change to correct&nbsp;local directory, e.g.&nbsp;
<pre>% cd ~Users > tim > Google Drive > Tim > YIMBYwiki > site-backup</pre>
 
Now sftp to server:
<pre>% sftp yimbywiki@yimby.wiki
sftp> cd backup
sftp> get [1st backup file just created]
sftp> get [2nd backup file just created]
sftp> get [3rd backup file just created] </pre>
 
These will then in turn get backed up automatically by Google Backup and Sync / Google Drive, at least on Tim's computers.&nbsp;<br/> &nbsp;
 
&nbsp;
Anonymous user