差分
このページの2つのバージョン間の差分を表示します。
| dokuwiki:ja:maintenance [2006/11/21] – 作成 admin | dokuwiki:ja:maintenance [2006/11/21] (現在) – 外部編集 (不明な日付) 127.0.0.1 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| + | ====== メンテナンス ====== | ||
| + | |||
| + | Here are some tips to automate some of the day-to-day maintenance needed for Dokuwiki | ||
| + | |||
| + | ===== Keep Blacklist up to date ===== | ||
| + | |||
| + | See [[wiki: | ||
| + | |||
| + | ===== Automatic cleanup script ===== | ||
| + | |||
| + | It is recommended to set up some cleanup process for busy DokuWikis. The following script is an example how to do that. It deletes all revisions which are older than 30 days from the [[wiki: | ||
| + | |||
| + | <code bash> | ||
| + | #!/bin/sh | ||
| + | |||
| + | # set the path to your DokuWiki installation here | ||
| + | DOKUWIKI=/ | ||
| + | |||
| + | # purge files older than 30 days from the attic | ||
| + | find $DOKUWIKI/ | ||
| + | |||
| + | # remove stale lock files | ||
| + | find $DOKUWIKI/ | ||
| + | |||
| + | # remove empty directories | ||
| + | find $DOKUWIKI/ | ||
| + | </ | ||
| + | >Should we include a line to clean out the meta directory too?\\ | ||
| + | >find $DOKUWIKI/ | ||
| + | >\\ | ||
| + | |||
| + | To run it automatically, | ||
| + | |||
| + | 5 0 * * * / | ||
| + | |||
| + | Be sure to set everything up correctly - you don't want to delete the wrong things, do you? | ||
| + | |||
| + | ===== Keeping Playground Clean ===== | ||
| + | |||
| + | To keep the wiki's Playground and other pages clean, use a cron job every 30 min, that restores Playground and other pages to their original content. | ||
| + | |||
| + | Example: Restore [[playground: | ||
| + | |||
| + | 0,30 * * * * cp -rpf / | ||
| + | |||
| + | Example: Restore all pages in [[wiki: | ||
| + | |||
| + | 0,30 * * * * cp -rpf / | ||
| + | |||