tips:maintenance
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
tips:maintenance [2019-02-18 12:51] – See also the plugins... Michaelsy | tips:maintenance [2022-09-28 22:54] – [Keeping Playground Clean] Remove -p from example commands; -p causes the pages to not refresh since the timestamp remains the same 2601:543:4001:9fa0:403e:b893:5604:64ce | ||
---|---|---|---|
Line 3: | Line 3: | ||
Here are some tips to automate some of the day-to-day maintenance needed or recommended for DokuWiki. | Here are some tips to automate some of the day-to-day maintenance needed or recommended for DokuWiki. | ||
- | See also the plugins: [[doku>plugin: | + | See also the plugins: [[plugin: |
===== Keep Blacklist up to date ===== | ===== Keep Blacklist up to date ===== | ||
Line 11: | Line 11: | ||
===== Automatic cleanup script ===== | ===== Automatic cleanup script ===== | ||
- | It is recommended to set up some cleanup process for busy DokuWikis. The following [[wp> | + | It is recommended to set up some cleanup process for busy DokuWikis. The following [[wp> |
<file bash cleanup.sh> | <file bash cleanup.sh> | ||
#!/bin/bash | #!/bin/bash | ||
- | function | + | cleanup() |
{ | { | ||
local data_path=" | local data_path=" | ||
Line 22: | Line 22: | ||
# purge files older than ${retention_days} days from attic and media_attic (old revisions) | # purge files older than ${retention_days} days from attic and media_attic (old revisions) | ||
- | find " | + | find " |
# remove stale lock files (files which are 1-2 days old) | # remove stale lock files (files which are 1-2 days old) | ||
Line 34: | Line 34: | ||
if [ -e " | if [ -e " | ||
then | then | ||
- | find " | + | find " |
fi | fi | ||
} | } | ||
Line 83: | Line 83: | ||
==== Windows -- batch script ==== | ==== Windows -- batch script ==== | ||
+ | |||
This is another Windows command shell script for maintaining your dokuwiki base on a Windows environment. | This is another Windows command shell script for maintaining your dokuwiki base on a Windows environment. | ||
The script uses the free and open source utility find, which can be obtained via [[http:// | The script uses the free and open source utility find, which can be obtained via [[http:// | ||
Line 186: | Line 187: | ||
Example: Restore Playground every 30 min: | Example: Restore Playground every 30 min: | ||
- | 0,30 * * * * cp -pf / | + | 0,30 * * * * cp -f / |
Example: Restore all pages in [[: | Example: Restore all pages in [[: | ||
- | 0,30 * * * * cp -rpf / | + | 0,30 * * * * cp -rf / |
==== Problems with CAPTCHA plugin ==== | ==== Problems with CAPTCHA plugin ==== | ||
+ | |||
Using the CAPTCHA plugin and the recommended [[tips: | Using the CAPTCHA plugin and the recommended [[tips: | ||
Line 199: | Line 201: | ||
Example: Deletes Playground metafiles every 30 min: | Example: Deletes Playground metafiles every 30 min: | ||
0,30 * * * * rm -f / | 0,30 * * * * rm -f / | ||
+ | |||
===== When cronjob is not available ===== | ===== When cronjob is not available ===== | ||
Line 213: | Line 216: | ||
---- | ---- | ||
- | Could someone add the appropriate line for [[http:// | + | Could someone add the appropriate line for [[https:// |
---- | ---- | ||
Does the [[plugin: | Does the [[plugin: |
tips/maintenance.txt · Last modified: 2023-10-10 20:28 by staze