no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | tech:others:dokuwiki_cleanup [2015/11/13 12:27] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Dokuwiki Cleanup Script ====== | ||
+ | <code bash> | ||
+ | #!/bin/bash | ||
+ | |||
+ | function cleanup() | ||
+ | { | ||
+ | local data_path=" | ||
+ | |||
+ | # remove stale lock files (files which are 1-2 days old) | ||
+ | find " | ||
+ | } | ||
+ | |||
+ | # cleanup DokuWiki installations (path to datadir, number of days) | ||
+ | # some examples: | ||
+ | |||
+ | cleanup / | ||
+ | cleanup / | ||
+ | # | ||
+ | exit | ||
+ | </ | ||