tips:maintenance
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tips:maintenance [2020-01-29 02:40] – corrected bash function syntax. this was an invalid mix of the two possible bash function formats. benks | tips:maintenance [2023-10-10 20:28] (current) – Updated to fix errors with the fact if -e does not work for globs. staze | ||
---|---|---|---|
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 32: | Line 32: | ||
# remove files older than ${retention_days} days from the cache | # remove files older than ${retention_days} days from the cache | ||
- | if [ -e " | + | if test -n " |
then | then | ||
- | find " | + | find " |
fi | fi | ||
} | } | ||
+ | |||
# cleanup DokuWiki installations (path to datadir, number of days) | # cleanup DokuWiki installations (path to datadir, number of days) | ||
Line 187: | Line 188: | ||
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 ==== |
tips/maintenance.1580262010.txt.gz · Last modified: by benks