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="$1"        # full path to data directory of wiki
 +
 +    # remove stale lock files (files which are 1-2 days old)
 +    find "${data_path}"/locks/ -name '*.lock' -type f -mtime +1 -delete
 +}
 +
 +# cleanup DokuWiki installations (path to datadir, number of days)
 +# some examples:
 +
 +cleanup /www/dokuwiki1/dir/data
 +cleanup /www/dokuwiki2/dir/data
 +#
 +exit
 +</code>
  

QR Code
QR Code tech:others:dokuwiki_cleanup (generated for current page)