create new tag
, view all tags, tagging instructions
This is the configuration page for the cron script that runs daily and that permanently removes items from the Trash web. The configuration variable is "File Age" and holds a value greater than 1. Any file in the Trash web that is older than "File Age" days will be permanently deleted.

The variable must be on a line by itself in this topic, located at the beginning of the line, and must contain exactly one space between File and Age. A colon must separate the name of the variable from the value. No quotes should be used. Update with care.

Here it is:

File Age: 90

The cron script that runs is defined like so:

maxage=`grep "^File Age: [0-9]\+$" /var/www/wiki/data/System/TrashRemoval.txt | sed -e 's/^File Age: //'
if [ "$maxage" != ""]; then
    find /var/www/wiki/data/Trash -depth -mtime +${maxage} -delete
    find /var/www/wiki/pub/Trash -depth -mtime +{$maxage} -delete

-- CTSpediaAdmin - 15 Feb 2011

Topic revision: r2 - 15 Feb 2011 - 16:08:59 - DalePlummer
This site is powered by FoswikiCopyright & by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding CTSPedia? Send feedback