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/12/17 04:58] – [Plugin Checks] stephenrestore_wiki_procedure [2024/07/17 07:03] (current) stephen
Line 1: Line 1:
 ====== Restore Wiki Procedure ====== ====== Restore Wiki Procedure ======
  
-TODO: Change the ''Prepare New Wiki.ps1'' script to generate a .zip file, otherwise the Kudo thing won't upload it. +  - Create new site 
- +    - [//Terminal//] Run ''& 'D:\Bin\Rimu\General Scripts\Refresh Local Wiki.ps1' '' 
-  - [//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%%''
-  - [//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//] 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. +    - [//Rimu//] Extract files, rename root directory to ''dokuwiki'' (if necessary), and move to Downloads (''C:\Users\micro\Downloads''). 
-  - [//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' '' 
-  - [//Terminal//] Run ''& 'D:\Bin\Rimu\General Scripts\Prepare New Wiki.ps1' '' +  - Backup site 
-  - [//Rimu//] Check the file ''C:\Users\micro\Downloads\dokuwiki\web.config'' exists. +    - [//Browser//] Start a [[https://tallguyracing-wiki.scm.azurewebsites.net/newui/fileManager#|File Manager]]. 
-  - [//Browser//] Start a [[https://tallguyracing-wiki.scm.azurewebsites.net/DebugConsole/?shell=powershell|PowerShell debug console]] (Kudo)+    - [//Browser,File Manager//] Navigate to ''site backups''. 
-  - [//Browser,Kudo//] Navigate to''/site/backups'' +    - [//Browser,File Manager//] Delete ''20240717_wiki.tar.gz''
-  - [//Browser,Kudo//] Delete ''2023xxxx-wwwroot.7z''+    - [//Browser//] Start an [[https://tallguyracing-wiki.scm.azurewebsites.net/newui/fileManager#|Debug Console]] (Bash). 
-  - [//Azure Portal//] TODO: Try skipping this step. 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-Wiki' App Service]] (so that the delete works). +    - [//Browser,Bash//] ''tar -czf site/backups/20240717_wiki.tar.gz site/wwwroot'' [Update date]. 
-  - [//Browser,Kudo//] Navigate to: ''/site/wwwroot'' +    - [//Browser,Bash//] ''ls -l site/backups/''Check backup file exists and is about 60 MB
-  - [//Browser,Kudo//] Create backup: ''7za.exe a -mhe ..\backups\20210110-wwwroot.7z .'' +  - Delete site 
-  [//Browser,Kudo//] Refresh, check backup file exists. Should be about 20 - 30MB+    - [//Browser,Bash//] ''rm -rf -- site/wwwroot && mkdir site/wwwroot''This may take a while
-  - [//Browser,Kudo//] 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,Kudo//] 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 
-  - [//Browser,Kudo//] Upload ''C:\Users\God\Downloads\dokuwiki\wiki.zip'' to ''/site/wwwroot''. Drag and drop it. It should extract itself. +    - [//Rimu//] Drag ''C:\Users\micro\Downloads\dokuwiki\wiki.zip'' to the **right side** of //File Manager//. 
-  - [//Browser,Kudo//] Delete the source (if it still exists): ''Remove-Item wiki.zip'' +    - It should extract itself, but it takes ages. Seriously, 10 mins or something
-  - [//Browser (private session)//] Go to the [[http://tallguyracing-wiki.azurewebsites.net/doku.php|wiki]] and log on as admin. +    - [//Browser,File Manager//] Refresh, navigate to ''site > wwwroot'', verify everything is there. 
-  - [//Browser (private session)//] Go to Admin -> [[http://tallguyracing-wiki.azurewebsites.net/doku.php?id=start&do=admin&page=searchindex|Searchindex Manager]] -> Rebuild index. +    - [//Browser,File Manager//] Delete the ''wiki.zip'' file (if it still exists)
-  - [//Browser (private session)//] Go to Admin -> [[https://tallguyracing-wiki.azurewebsites.net/doku.php?id=restore_wiki_procedure&do=admin&page=styling|Template Style Settings]]. +  - Smoke test 
-  - [//Browser (private session)//] Set 'The width of the full site' to ''120em''+    - [//Browser//] Open [[https://tallguyracing-wiki.azurewebsites.net/doku.php?id=restore_wiki_procedure|this page]] in a **new tab**. 
-  - [//Browser (private session)//] Go to the Admin -> [[http://tallguyracing-wiki.azurewebsites.net/doku.php?id=start&do=admin&page=extension|Extension Manager]] page. +  - Set up 
-  - [//Browser (private session)//] Remove unused plugins, update plugins that require updating. +    - [//Browser (private session)//] Go to the [[http://tallguyracing-wiki.azurewebsites.net/doku.php|wiki]] and log on as admin. 
-  - [//Browser//] Verify the plugins work (see [[#plugin_checks|Plugin Checks]] below). +    - [//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 [[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 (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 search works (including private pages). +    - [//Browser (private session)//] Set 'The width of the full site' to ''120em''
-  - [//Browser//] Verify old revisions work and page comparison. +    - [//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 editing a page and previewing an edited page works. +    - [//Browser (private session)//] Remove unused plugins, update plugins that require updating. 
-  - [//Rimu//] Delete the contents of ''%%D:\Backups\Wiki\Full%%'' (but not the directory). +  - Testing 
-  - [//Terminal//] Run ''& 'C:\Bin\Athena\General Scripts\Refresh Local Wiki.ps1' ''+    - [//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' ''
  
 ===== Style Checks ===== ===== Style Checks =====
restore_wiki_procedure.1702789126.txt.gz · Last modified: 2023/12/17 16:58 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki