Skip to content

Instantly share code, notes, and snippets.

@thomaspoignant
Last active March 17, 2024 03:06
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomaspoignant/7cbae830acefb923e9d3fd373420f2f5 to your computer and use it in GitHub Desktop.
Save thomaspoignant/7cbae830acefb923e9d3fd373420f2f5 to your computer and use it in GitHub Desktop.
Dokuwiki, export all pages with one command line. The result is all the wiki pages and files in html
wget \
--recursive \
--no-clobber \
--page-requisites \
--no-check-certificate \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--no-parent \
--domains yourdomain.com \
--reject-regex 'do=|feed.php'
http://username:password@wiki.yourdomain.com
@stefan2904
Copy link

stefan2904 commented Jan 13, 2023

for basic auth it works with

wget \
  --recursive \
  --no-clobber \
  --page-requisites \
  --no-check-certificate \
  --html-extension \
  --convert-links \
  --restrict-file-names=windows \
  --no-parent \
  --domains yourdomain.com \
  --reject-regex 'do=|feed.php' \
  https://username:password@wiki.yourdomain.com

otherwise you need to set the auth cookie DokuWiki with --header

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment