DokuWIKI Experience and skill Reference: Wiki Formatting Syntax
Main Directory layout as below. For details, refer to https://www.dokuwiki.org/devel:dirlayout
Note: If the content stored in a wiki page is data, things like the time of last update, who updated it, the filesize etc. could all be regarded as metadata for the wiki page. This page describes where and how such additional data is stored in DokuWiki. The detail meta information refer to https://www.dokuwiki.org/devel:metadata#data_structure
Official proposal to backup dokuwiki: Only below two folder is a must
If need to save version history, below 4 folders are needed
Options since seldom change configuration
Take note: no need to backup below folders
@echo off rem place this script in the parent directory of dokuBackup folder. IF EXIST dokuBackup ( echo dokuBackup already exist echo renaming ... IF EXIST dokuBackup_old ( echo are you confused? dokuBackup_old already exist! exit /B 1 ) ELSE ( move /Y dokuBackup dokuBackup_old ) ) ELSE ( mkdir dokuBackup ) ncftpget -R -u yourUsername -p yourPassword yourWebspaceFTPurl "./dokuBackup" "yourWebSpaceFtpDokuwikiPath/data/pages/mywiki" ncftpget -R -u yourUsername -p yourPassword yourWebspaceFTPurl "./dokuBackup" "yourWebSpaceFtpDokuwikiPath/media/mywiki"
#!/bin/sh -e # backup data from wiki (FTP) unset url="ftp://example.net/" backup="/path/to/backup" wget -q --no-cache -nH -c -t0 --mirror -P$backup -i- <<EOF $url/data/pages/mywiki $url/data/media/mywiki EOF
Firstly Fully delete original folders and files under dokuwiki in order to avoid old plugin mismatch and clean some old files:
Secondly upload new dokuwiki unzip files/folders via ftp
Lastly reconfigure dokuwiki: dokuwiki/install.php
| Function | syntax | Example |
|---|---|---|
| Escape pipe(|) | %% | %% | %% | %% |
| simple escape way to no format for single line with nowiki | <nowiki>--</nowiki> | <nowiki>--</nowiki>. |
| simple escape way to no format for a block with file | <file>--</file> | a b |
| simple escape way to no format for a block with file | <file bash t.sh>--</file> |
|
| simple escape way to no format for a block with code | <code> a b </code> | a b |
| Delete words with del | <del>deleted</del | |
| Create Paragraphs or forced line with \\ Valid for WIKI Table also | \\ Force line added here\\ force line1 \\ force line2 </file> | Force line added here force line1 force line2 |
| iframe plugin test | iframe example | dokuwiki_html example |
| Goal | Setting |
| Disable public reset | $conf['disableactions'] = 'resendpwd'; |
| Disable register & reset | $conf['disableactions'] = 'register,resendpwd'; |
| Secure email reset (if enabled) | Configure SMTP settings properly in conf/local.php |
Add or update the following lines:
$conf['mailfrom'] = 'youraddress@gmail.com'; $conf['mailprefix'] = '[DokuWiki] '; $conf['smtphost'] = 'smtp.gmail.com'; $conf['smtpport'] = 587; $conf['authsmtp'] = 1; $conf['smtpuser'] = 'youraddress@gmail.com'; $conf['smtppass'] = 'your_app_password_here'; // NOT your Gmail password! $conf['securemail'] = 1; // Enables TLS
Replace youraddress@gmail.com and your_app_password_here with your Gmail and the app password from step 1.