~ubuntu-branches/ubuntu/utopic/couriergrey/utopic

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
You should create a cron job that expires your database from
time to time.

This cron job should call couriergrey with the arguments "-e 365" to
expire entries, that are older than one year. Make sure that couriergrey
is run as the user, that normally accesses the database. E.g. on a
standard Debian system this is the user 'daemon'.

On a Debian system, create the file /etc/cron.weekly/couriergrey with
the following content:

===[snip]===============================================================
#! /bin/bash

su -c "/usr/bin/couriergrey -e 365" daemon
===[snip]===============================================================