User Tools

Site Tools


restore_wiki_procedure

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
restore_wiki_procedure [2013/06/08 23:22] stephenrestore_wiki_procedure [2024/07/17 07:03] (current) stephen
Line 1: Line 1:
 ====== Restore Wiki Procedure ====== ====== Restore Wiki Procedure ======
  
-TODOFix the favicon.ico.+  - Create new site 
 +    - [//Terminal//] Run ''& 'D:\Bin\Rimu\General Scripts\Refresh Local Wiki.ps1' '' 
 +    - [//Rimu//] Open a Windows Explorer at the backup location (''%%D:\Backups\Wiki\Full\data\pages%%''
 +    - [//Browser//] Find the most [[http://tallguyracing-wiki.azurewebsites.net/doku.php?do=recent|recently changed wiki page]] and check that the back up has the change (''wiki\data\pages''). 
 +    - [//Browser//] Download the latest version of the [[http://download.dokuwiki.org/|Wiki software]]. Toggle off all the languages and click 'Start Download' at the **bottom** of the page. 
 +    - [//Rimu//] Extract files, rename root directory to ''dokuwiki'' (if necessary), and move to Downloads (''C:\Users\micro\Downloads''). 
 +    - [//Terminal//] Run ''& 'D:\Bin\Rimu\General Scripts\Prepare New Wiki.ps1' '' 
 +  - Backup site 
 +    - [//Browser//] Start a [[https://tallguyracing-wiki.scm.azurewebsites.net/newui/fileManager#|File Manager]]. 
 +    - [//Browser,File Manager//] Navigate to ''site > backups''
 +    - [//Browser,File Manager//] Delete ''20240717_wiki.tar.gz''
 +    - [//Browser//] Start an [[https://tallguyracing-wiki.scm.azurewebsites.net/newui/fileManager#|Debug Console]] (Bash). 
 +    - [//Browser,Bash//] ''tar -czf site/backups/20240717_wiki.tar.gz site/wwwroot'' [Update date]. 
 +    - [//Browser,Bash//] ''ls -l site/backups/'' - Check backup file exists and is about 60 MB. 
 +  - Delete site 
 +    - [//Browser,Bash//] ''rm -rf -- site/wwwroot && mkdir site/wwwroot'' - This may take a while. 
 +    - [//Browser,File Manager//] Refresh, navigate to ''site > wwwroot'', verify everything is gone. 
 +  - Upload new site 
 +    - [//Rimu//] Drag ''C:\Users\micro\Downloads\dokuwiki\wiki.zip'' to the **right side** of //File Manager//
 +    - It should extract itself, but it takes ages. Seriously, 10 mins or something. 
 +    - [//Browser,File Manager//] Refresh, navigate to ''site > wwwroot'', verify everything is there. 
 +    - [//Browser,File Manager//] Delete the ''wiki.zip'' file (if it still exists). 
 +  - Smoke test 
 +    - [//Browser//] Open [[https://tallguyracing-wiki.azurewebsites.net/doku.php?id=restore_wiki_procedure|this page]] in a **new tab**. 
 +  - Set up 
 +    - [//Browser (private session)//] Go to the [[http://tallguyracing-wiki.azurewebsites.net/doku.php|wiki]] and log on as admin. 
 +    - [//Browser (private session)//] Go to Admin -> [[http://tallguyracing-wiki.azurewebsites.net/doku.php?id=start&do=admin&page=searchindex|Searchindex Manager]] -> Rebuild index. 
 +    - [//Browser (private session)//] Go to Admin -> [[https://tallguyracing-wiki.azurewebsites.net/doku.php?id=restore_wiki_procedure&do=admin&page=styling|Template Style Settings]]. 
 +    - [//Browser (private session)//] Set 'The width of the full site' to ''120em''
 +    - [//Browser (private session)//] Go to the Admin -> [[http://tallguyracing-wiki.azurewebsites.net/doku.php?id=start&do=admin&page=extension|Extension Manager]] page. 
 +    - [//Browser (private session)//] Remove unused plugins, update plugins that require updating. 
 +  - Testing 
 +    - [//Browser//] Verify the plugins work (see [[#plugin_checks|Plugin Checks]] below). 
 +    - [//Browser//] Verify [[http://tallguyracing-wiki.azurewebsites.net/data/pages/wiki/dokuwiki.txt|this file]] is *not* accessible. If it is, something is wrong with web.config file. See [[https://www.dokuwiki.org/security|here]] for more info. 
 +    - [//Browser//] Verify search works (including private pages). 
 +    - [//Browser//] Verify old revisions work and page comparison. 
 +    - [//Browser//] Verify editing a page and previewing an edited page works. 
 +  - Clean up 
 +    - [//Rimu//] Delete the contents of ''%%D:\Backups\Wiki\Full%%'' (but not the directory). 
 +    - [//Terminal//] Run ''& 'C:\Bin\Rimu\General Scripts\Refresh Local Wiki.ps1' ''
  
-  - [//Zeus//] Plug in Flicky. +===== Style Checks ===== 
-  - [//Zeus//] Win + Alt + F6, ''Refresh Local Wiki.bat''+ 
-  - [//Firefox//] Find the most [[http://tallguyracing.com/wiki/doku.php?do=recent|recently changed wiki page]] and check that the back up has the change+A ''Code bit'' should look good. It is defined in ''/site/wwwroot/conf/userall.css'' which should come from ''D:\Bin\Common\Wiki Site Root Files\conf\userall.css'' 
-  [//FileZilla//] Delete ''/wikiold_*'' (this takes a long time). + 
-  - [//Firefox//] Download the latest version of the [[http://www.splitbrain.org/projects/dokuwiki|Wiki software]]+===== Plugin Checks ===== 
-  - [//Zeus//] Extract to a temp directory and rename root directory to ''Wiki''. + 
-  - [//Zeus//] Compare ''wiki\conf'' with new wiki and copy/merge +==== Comment Syntax Plugin ==== 
-    - ''acl.auth.php'' + 
-    - ''local.php'' +Verify there is nothing after this line/* The Comment Syntax plugin is not working. */ 
-    ''users.auth.php'' + 
-  - [//Zeus//] Copy ''wiki\data\attic'' from back up to new wiki+==== Tag Plugin ==== 
-  - [//Zeus//] Copy ''wiki\data\media'' from back up to new wiki. + 
-  - [//Zeus//] Copy ''wiki\data\meta'' from back up to new wiki. +  - Verify the tags at the bottom of this page are okay. 
-  - [//Zeus//] Copy ''wiki\data\pages'' from back up to new wiki. +  - Click one to verify tag lists are okay. 
-  - [//Zeus//] Copy ''wiki\lib\plugins\term'' from back up to new wikiThis plugin can not be installed automatically. +  - Try [[https://tallguyracing-wiki.azurewebsites.net/doku.php?id=tag:code_snippet&do=showtag&tag=code_snippet|this link]]. 
-  - [//Zeus//] Copy ''Dropbox\Application Settings\Wiki\style.local.ini'' from **Flicky** to ''wiki\lib\tpl\dokuwiki'' on the new wiki. + 
-  - [//Zeus//] Delete all ''.listing'' files from new wiki. +==== Pagelist Plugin ==== 
-  - [//Zeus//Delete ''wiki\install.php''. + 
-  [//Zeus//] Delete ''wiki\inc\lang\*'' except ''en'' and ''.htaccess''+This should look okay: 
-  - [//Zeus//] Delete ''wiki\lib\plugings\*\lang\*'' except ''en'' and ''.htaccess''+ 
-  - [//Firefox//] Download the latest version of the [[http://wiki.splitbrain.org/plugin:comment|Comment Plugin]] (this plugin can not be added automatically)+{{topic>code_snippet -archived}} 
-  - [//Zeus//] Extract to a temp directory and rename root directory to ''Comment''+ 
-  - [//Zeus//] Copy to the ''wiki\lib\plugins'' directory in the new wiki. +==== Blockquote Plugin ==== 
-  - [//FileZilla//] Rename ''/wiki'' to ''/wikiold_20110402''. + 
-  - [//FileZilla//] Create ''/wiki''+This should look okay: 
-  - [//FileZilla//] Upload new wiki to ''/wiki''+ 
-  - [//Internet Explorer//] Go to the [[http://tallguyracing.com/wiki/doku.php|wiki]] and log on as admin. +<blockquote>Your male and female slaves are to come from the nations around you; from them you may buy slaves.<cite>[[http://www.biblegateway.com/passage/?search=Leviticus%2025:44&version=NIV|Leviticus 25:44 OT (New International Version)]]</cite></blockquote> 
-  - [//Internet Explorer//] Go to Admin -> Manage Plugins and install the following plugins:+ 
 +==== Move ==== 
 + 
 +Ensure there is a paint brush icon with 'Rename Pageattached to this page at the top right
 + 
 +===== Plugin List ===== 
 + 
 +    - [[http://www.foosel.org/snippets/dokuwiki/blockquote#with_plugin_manager|Blockquote Plugin]] 
 +    - [[http://www.dokuwiki.org/plugin:commentsyntax|Comment Syntax Plugin]]. 
 +    - [[https://www.dokuwiki.org/plugin:move|Move Plugin]]
     - [[http://wiki.splitbrain.org/plugin:pagelist|Pagelist Plugin]]     - [[http://wiki.splitbrain.org/plugin:pagelist|Pagelist Plugin]]
     - [[http://www.dokuwiki.org/plugin:searchindex|Searchindex Manager]]     - [[http://www.dokuwiki.org/plugin:searchindex|Searchindex Manager]]
     - [[http://www.dokuwiki.org/plugin:tag|Tag Plugin]]     - [[http://www.dokuwiki.org/plugin:tag|Tag Plugin]]
-    - [[http://www.dokuwiki.org/plugin:editx|Editx Plugin]] + 
-    - [[http://www.foosel.org/snippets/dokuwiki/blockquote#with_plugin_manager|Blockquote Plugin]] +===== Troubleshooting ===== 
-  - [//Internet Explorer//] Go to Admin -> Searchindex Manager -> Rebuild index. + 
-  - [//Internet Explorer//] Go to Admin -> Tagindex Manager -> Rebuild index+  Check the web server can serve an [[https://tallguyracing-wiki.azurewebsites.net/test.jpg|image]]. 
-  - [//FileZilla//] Delete everything in ''/wiki/data/cache'' except the ''_dummy'' file+  Check the web server can serve a [[https://tallguyracing-wiki.azurewebsites.net/test.php|basic PHP page]]. 
-  - [//Firefox//] Verify the following plugins work: +  - Logs. Probably have to [[https://portal.azure.com/#@09e59351-6930-4410-a75a-e4a8ea2fa4c6/resource/subscriptions/2f06a290-7493-4b82-bb45-3387c0b6b2ec/resourceGroups/Aussie/providers/Microsoft.Web/sites/TallGuyRacing-Wiki/appservicelogs|enable logging]] first. Can view either the [[https://portal.azure.com/#@09e59351-6930-4410-a75a-e4a8ea2fa4c6/resource/subscriptions/2f06a290-7493-4b82-bb45-3387c0b6b2ec/resourceGroups/Aussie/providers/Microsoft.Web/sites/TallGuyRacing-Wiki/logStream|Portal Log Stream]] or the [[https://tallguyracing-wiki.scm.azurewebsites.net/api/logstream|Kudu Log Stream]]. Not sure which works better. Takes a while to come through. 
-    - Comment Plugin. Verify there is nothing after this line. /* The comment plugin is not working. */ + 
-    Tag PluginVerify the tags at the bottom of this page are okayClick one to verify tag lists are okay. +==== Plugins ==== 
-    - Pagelist Plugin. Verify the tag-based page lists are okay on the [[start|Start]] page. + 
-    Term Plugin. Go to the [[private:blood_tests|Blood Tests]] page and verify quotes look right+Last time it was the plugins that broke the wiki. 
-    Blockquote Plugin. Go to the [[favourite_bible_quotes|Favourite Bible Quotes]] page and verify the terms work+ 
-  - [//Firefox//] Verify search works (including private pages)+  - [//FileZilla//] Delete everything from ''/site/wwwroot/lib/plugins''
-  - [//Firefox//] Verify old revisions work and page comparison. +  - [//FileZilla//] Download a fresh copy of the wiki and upload the ''plugins'' directory
-  - [//Firefox//] Verify editing a page and previewing an edited page works.+  - [//Browser//] Log into wiki as admin, go to the [[http://tallguyracing-wiki.azurewebsites.net/doku.php?id=start&do=admin&page=extension|Extension Manager]] 
 +  - [//Browser//Search and install all the plugins list above
 +  [//Browser//Go to [[http://tallguyracing-wiki.azurewebsites.net/doku.php?id=start&do=admin&page=searchindex|Searchindex Manager]], rebuild index. 
 + 
 +===== Rate Limiting the Searchindex Manager plugin ===== 
 + 
 +This probably doesn't need to be done, now that the wiki is hosted on Azure. 
 + 
 +  - [//Ares//] Open ''wiki/lib/plugins/searchindex/ajax.php'' in Notepad++
 +  - [//Notepad++//] Add the sleep line of code near the bottom of the file:<code php>    // do the work 
 +  $success = idx_addPage($_POST['page'], false, $force); 
 +  sleep(5);</code> 
 +  - [//Notepad++//] Save new version of the file.
  
 {{tag>wiki meta admin backup restore}} {{tag>wiki meta admin backup restore}}
restore_wiki_procedure.1370733766.txt.gz · Last modified: 2017/01/01 19:51 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki