tips:maintenance
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
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 | 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) |
tips/maintenance.1664398462.txt.gz · Last modified: 2022-09-28 22:54 by 2601:543:4001:9fa0:403e:b893:5604:64ce