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 [2023/02/14 04:59] – [Tag Plugin] adminrestore_wiki_procedure [2024/07/17 07:03] (current) stephen
Line 1: Line 1:
 ====== Restore Wiki Procedure ====== ====== Restore Wiki Procedure ======
  
-  - [//Athena//] Plug in Flicky. +  - Create new site 
-  - [//Terminal//] Run ''& 'C:\Bin\Athena\General Scripts\Refresh Local Wiki.ps1' '' +    - [//Terminal//] Run ''& 'D:\Bin\Rimu\General Scripts\Refresh Local Wiki.ps1' '' 
-  - [//Athena//] Open a Windows Explorer at the backup location (''%%E:\Backups\Wiki\Full\data\pages%%''+    - [//Rimu//] Open a Windows Explorer at the backup location (''%%D:\Backups\Wiki\Full\data\pages%%''
-  - [//Browser//] Find the most [[http://wiki.tallguyracing.com/doku.php?do=recent|recently changed wiki page]] and check that the back up has the change (''wiki\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. +    - [//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. 
-  - [//Athena//] Extract to a temp directory and rename root directory to ''dokuwiki''+    - [//Rimu//] Extract files, rename root directory to ''dokuwiki'' (if necessary), and move to Downloads (''C:\Users\micro\Downloads'')
-  - [//PowerShell ISE//] Run the ''C:\Bin\Athena\General Scripts\Prepare New Wiki.ps1'' script. +    - [//Terminal//] Run ''& 'D:\Bin\Rimu\General Scripts\Prepare New Wiki.ps1' '' 
-  - [//Athena//] Check the file ''C:\Users\God\Downloads\dokuwiki\web.config'' exists. +  - Backup site 
-  - [//FileZilla//] Toolbar > Site Manager > TallGuyRacing > TallGuyRacing-Wiki+    - [//Browser//] Start a [[https://tallguyracing-wiki.scm.azurewebsites.net/newui/fileManager#|File Manager]]. 
-  - [//FileZilla//] Remote site: ''/site/backups'' +    - [//Browser,File Manager//] Navigate to ''site backups''. 
-  - [//FileZilla//] Delete ''20210110-wwwroot.7z''. +    - [//Browser,File Manager//] Delete ''20240717_wiki.tar.gz''
-  - [//Azure Portal//] Restart 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/appServices|'TallGuyRacing-WikiApp Service]] (so that the delete works)+    - [//Browser//] Start an [[https://tallguyracing-wiki.scm.azurewebsites.net/newui/fileManager#|Debug Console]] (Bash)
-  - [//Browser//] Start [[https://tallguyracing-wiki.scm.azurewebsites.net/DebugConsole/?shell=powershell|PowerShell debug console]]. +    - [//Browser,Bash//] ''tar -czf site/backups/20240717_wiki.tar.gz site/wwwroot'' [Update date]
-  - [//Browser,Console//] Go to ''site/wwwroot''+    - [//Browser,Bash//] ''ls -l site/backups/''Check backup file exists and is about 60 MB
-  - [//Browser,Console//] Create backup: ''7za.exe a -mhe ..\backups\20210110-wwwroot.7z .'' +  - Delete site 
-  [//FileZilla//] Refresh, check backup file exists. Should be about 24mb+    - [//Browser,Bash//] ''rm -rf -- site/wwwroot && mkdir site/wwwroot''This may take a while
-  - [//Browser,Console//] Check the deletion of existing wiki stuff: ''Get-ChildItem . | Where-Object {!($_.Name -in '.well-known', 'backup-wiki.php', 'App_Data', 'test.php', 'test.jpg' ) } | Remove-Item -Recurse -WhatIf'' +    - [//Browser,File Manager//] Refreshnavigate to ''site > wwwroot'', verify everything is gone
-  - [//Browser,Console//] Delete existing wiki stuff: ''Get-ChildItem . | Where-Object {!($_.Name -in '.well-known', 'backup-wiki.php''App_Data', 'test.php', 'test.jpg' ) } | Remove-Item -Recurse'' +  - Upload new site 
-  - [//FileZilla//] Local file: ''C:\Users\God\Downloads\dokuwiki'' +    - [//Rimu//] Drag ''C:\Users\micro\Downloads\dokuwiki\wiki.zip'' to the **right side** of //File Manager//. 
-  - [//FileZilla//] Remote site: ''/site/wwwroot'' +    - It should extract itself, but it takes ages. Seriously, 10 mins or something. 
-  - [//FileZilla//] Upload ''C:\Users\God\Downloads\dokuwiki\wiki.7z'' to ''/site/wwwroot''+    - [//Browser,File Manager//] Refresh, navigate to ''site wwwroot'', verify everything is there
-  - [//Browser,Console//] Extract the new wiki: ''7za x wiki.7z'' +    - [//Browser,File Manager//] Delete the ''wiki.zip'' file (if it still exists). 
-  - [//Browser,Console//] Delete the source''Remove-Item wiki.7z'' +  - Smoke test 
-  - [//Internet Explorer//] Go to the [[http://wiki.tallguyracing.com/doku.php|wiki]] and log on as admin. +    - [//Browser//Open [[https://tallguyracing-wiki.azurewebsites.net/doku.php?id=restore_wiki_procedure|this page]] in a **new tab**. 
-  - [//Internet Explorer//] Go to Admin -> [[http://wiki.tallguyracing.com/doku.php?id=start&do=admin&page=searchindex|Searchindex Manager]] -> Rebuild index. +  - Set up 
-  - [//Internet Explorer//] Go to the Admin -> [[http://wiki.tallguyracing.com/doku.php?id=start&do=admin&page=extension|Extension Manager]] page. +    - [//Browser (private session)//] Go to the [[http://tallguyracing-wiki.azurewebsites.net/doku.php|wiki]] and log on as admin. 
-  - [//Internet Explorer//] Remove unused plugins, update plugins that require updating. +    - [//Browser (private session)//] Go to Admin -> [[http://tallguyracing-wiki.azurewebsites.net/doku.php?id=start&do=admin&page=searchindex|Searchindex Manager]] -> Rebuild index. 
-  - [//Browser//] Verify the plugins work (see [[#plugin_checks|Plugin Checks]] below). +    - [//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//] Verify [[http://wiki.tallguyracing.com/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 (private session)//] Set 'The width of the full site' to ''120em''
-  - [//Browser//] Verify search works (including private pages). +    - [//Browser (private session)//] Go to the Admin -> [[http://tallguyracing-wiki.azurewebsites.net/doku.php?id=start&do=admin&page=extension|Extension Manager]] page. 
-  - [//Browser//] Verify old revisions work and page comparison. +    - [//Browser (private session)//] Remove unused plugins, update plugins that require updating. 
-  - [//Browser//] Verify editing a page and previewing an edited page works. +  - Testing 
-  - [//Athena//] Delete the contents of ''%%E:\Backups\Wiki\Full%%''+    - [//Browser//] Verify the plugins work (see [[#plugin_checks|Plugin Checks]] below). 
-  - [//Terminal//] Run ''& 'C:\Bin\Athena\General Scripts\Refresh Local Wiki.ps1' ''+    - [//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' '' 
 + 
 +===== Style Checks ===== 
 + 
 +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''
  
 ===== Plugin Checks ===== ===== Plugin Checks =====
Line 46: Line 56:
   - Verify the tags at the bottom of this page are okay.   - Verify the tags at the bottom of this page are okay.
   - Click one to verify tag lists are okay.   - Click one to verify tag lists are okay.
-  - Try [[https://wiki.tallguyracing.com/doku.php?id=tag:code_snippet&do=showtag&tag=code_snippet|this link]].+  - Try [[https://tallguyracing-wiki.azurewebsites.net/doku.php?id=tag:code_snippet&do=showtag&tag=code_snippet|this link]].
  
 ==== Pagelist Plugin ==== ==== Pagelist Plugin ====
Line 60: Line 70:
 <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> <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>
  
-==== Editx ====+==== Move ====
  
-Edit a page and verify that there is a 'page management' title and link at the bottom of the page.+Ensure there is a paint brush icon with 'Rename Page' attached to this page at the top right.
  
 ===== Plugin List ===== ===== Plugin List =====
Line 68: Line 78:
     - [[http://www.foosel.org/snippets/dokuwiki/blockquote#with_plugin_manager|Blockquote Plugin]]     - [[http://www.foosel.org/snippets/dokuwiki/blockquote#with_plugin_manager|Blockquote Plugin]]
     - [[http://www.dokuwiki.org/plugin:commentsyntax|Comment Syntax Plugin]].     - [[http://www.dokuwiki.org/plugin:commentsyntax|Comment Syntax Plugin]].
-    - [[http://www.dokuwiki.org/plugin:editx|Editx 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]]
Line 75: Line 85:
 ===== Troubleshooting ===== ===== Troubleshooting =====
  
-  - Check the web server can serve an [[https://wiki.tallguyracing.com/test.jpg|image]]. +  - Check the web server can serve an [[https://tallguyracing-wiki.azurewebsites.net/test.jpg|image]]. 
-  - Check the web server can serve a [[https://wiki.tallguyracing.com/test.php|basic PHP page]].+  - Check the web server can serve a [[https://tallguyracing-wiki.azurewebsites.net/test.php|basic PHP page]].
   - 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.   - 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.
  
Line 85: Line 95:
   - [//FileZilla//] Delete everything from ''/site/wwwroot/lib/plugins''.   - [//FileZilla//] Delete everything from ''/site/wwwroot/lib/plugins''.
   - [//FileZilla//] Download a fresh copy of the wiki and upload the ''plugins'' directory.   - [//FileZilla//] Download a fresh copy of the wiki and upload the ''plugins'' directory.
-  - [//Browser//] Log into wiki as admin, go to the [[http://wiki.tallguyracing.com/doku.php?id=start&do=admin&page=extension|Extension Manager]]+  - [//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//] Search and install all the plugins list above.
-  - [//Browser//] Go to [[http://wiki.tallguyracing.com/doku.php?id=start&do=admin&page=searchindex|Searchindex Manager]], rebuild index.+  - [//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 ===== ===== Rate Limiting the Searchindex Manager plugin =====
restore_wiki_procedure.1676350776.txt.gz · Last modified: 2023/02/15 05:59 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki