User Tools

Site Tools


restore_wiki_procedure

This is an old revision of the document!


Restore Wiki Procedure

  1. [Athena] Plug in Flicky.
  2. [Athena] Win + Alt + F6, Refresh Local Wiki.bat.
  3. [Athena] Open a Windows Explorer at the backup location (E:\Backups\Wiki\Full\data\pages)
  4. [Browser] Find the most recently changed wiki page and check that the back up has the change (wiki\data\pages).
  5. [Browser] Download the latest version of the Wiki software. Toggle off all the languages and click 'Start Download' at the bottom of the page.
  6. [Athena] Extract to a temp directory and rename root directory to dokuwiki.
  7. [PowerShell ISE] Run the C:\Bin\Athena\General Scripts\Prepare New Wiki.ps1 script.
  8. [Athena] Check the file C:\Users\God\Downloads\dokuwiki\web.config exists.
  9. [FileZilla] Toolbar > Site Manager > TallGuyRacing > TallGuyRacing-Wiki.
  10. [FileZilla] Remote site: /site/backups
  11. [FileZilla] Delete 20210110-wwwroot.7z.
  12. [Azure Portal] Restart the 'TallGuyRacing-Wiki' App Service (so that the delete works).
  13. [Browser] Start a PowerShell debug console.
  14. [Browser,Console] Go to site/wwwroot.
  15. [Browser,Console] Create backup: 7za.exe a -mhe ..\backups\20210110-wwwroot.7z .
  16. [FileZilla] Refresh, check backup file exists. Should be about 24mb.
  17. [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
  18. [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
  19. [FileZilla] Local file: C:\Users\God\Downloads\dokuwiki
  20. [FileZilla] Remote site: /site/wwwroot
  21. [FileZilla] Upload C:\Users\God\Downloads\dokuwiki\wiki.7z to /site/wwwroot.
  22. [Browser,Console] Extract the new wiki: 7za x wiki.7z
  23. [Browser,Console] Delete the source: Remove-Item wiki.7z
  24. [Internet Explorer] Go to the wiki and log on as admin.
  25. [Internet Explorer] Go to Admin → Searchindex Manager → Rebuild index.
  26. [Internet Explorer] Go to the Admin → Extension Manager page.
  27. [Internet Explorer] Remove unused plugins, update plugins that require updating.
  28. [Browser] Verify the plugins work (see Plugin Checks below).
  29. [Browser] Verify this file is *not* accessible. If it is, something is wrong with web.config file. See here for more info.
  30. [Browser] Verify search works (including private pages).
  31. [Browser] Verify old revisions work and page comparison.
  32. [Browser] Verify editing a page and previewing an edited page works.
  33. [Athena] Delete the contents of E:\Backups\Wiki\Full.
  34. [Athena] Win + Alt + F6, Refresh Local Wiki.bat.

Plugin Checks

Comment Syntax Plugin

Verify there is nothing after this line.

Tag Plugin

  1. Verify the tags at the bottom of this page are okay.
  2. Click one to verify tag lists are okay.
  3. Try this link.

Pagelist Plugin

This should look okay:

2009/11/25 02:39Stephen Heise
2009/01/14 00:51Stephen Heise
2009/01/14 00:57Stephen Heise
2009/12/25 09:48Stephen Heise
2009/11/24 22:48Stephen Heise
2009/01/14 00:45Stephen Heise
2009/09/18 06:15Stephen Heise
2009/01/14 00:47Stephen Heise
2009/02/02 04:12Stephen Heise
2009/01/14 23:57Stephen Heise
2009/01/14 23:55Stephen Heise
2010/10/05 20:02Stephen Heise
2009/09/23 04:59Stephen Heise
2009/01/14 23:58Stephen Heise
2010/03/14 22:11Stephen Heise
2009/11/04 20:44Stephen Heise
2010/04/27 22:42Stephen Heise

Blockquote Plugin

This should look okay:

Your male and female slaves are to come from the nations around you; from them you may buy slaves.Leviticus 25:44 OT (New International Version)

Editx

Edit a page and verify that there is a 'page management' title and link at the bottom of the page.

Plugin List

Troubleshooting

  1. Check the web server can serve an image.
  2. Check the web server can serve a basic PHP page.
  3. Logs. Probably have to enable logging first. Can view either the Portal Log Stream or the Kudu Log Stream. Not sure which works better. Takes a while to come through.

Plugins

Last time it was the plugins that broke the wiki.

  1. Ordered List Item

Rate Limiting the Searchindex Manager plugin

This probably doesn't need to be done, now that the wiki is hosted on Azure.

  1. [Ares] Open wiki/lib/plugins/searchindex/ajax.php in Notepad++.
  2. [Notepad++] Add the sleep line of code near the bottom of the file:
        // do the work
      $success = idx_addPage($_POST['page'], false, $force);
      sleep(5);
  3. [Notepad++] Save new version of the file.
restore_wiki_procedure.1610249120.txt.gz · Last modified: 2021/01/11 04:25 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki