Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tech:others:dokuwiki_cleanup [2015/11/13 06:27] (current)
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)