Commit Graph

7 Commits

Author SHA1 Message Date
Daniel Willmann 02e19c7e50 contrib: Use sed with extended regexps
This makes the regular expression easier to read since less characters
need to be escaped.
2011-10-20 18:51:04 +02:00
Daniel Willmann 5a1c292140 contrib: Add a new method to the cleanup script
With the "NAME" method the filename is used for the age check instead of
ctime. The "AGE" method which used ctime has been renamed to "CTIME".
2011-09-29 12:21:24 +02:00
Daniel Willmann 67a76e53cc contrib: Use explicit globs and regexps 2011-09-29 12:20:56 +02:00
Holger Hans Peter Freyther 0741879e11 cron: Deal with '-' in the name of a client.
Do not stop when seeing the first '-'. E.g. if you have names like
tpe-system1, tpe-system2 they were treated as tpe and it was possible
that a currently opened file was deleted.
2011-09-24 16:51:32 +02:00
Daniel Willmann 53e1f38514 Clean by age as well as by amount of files in osmo_pcap_clean_old
The behaviour can be controlled by setting METHOD to "AGE" or "FILES".
2011-08-18 14:10:59 +02:00
Daniel Willmann 0e94548484 Fix bug where the cleanup script kept the oldest files
Fixes OW #21.
2011-07-26 12:36:00 +02:00
Daniel Willmann 5d62ed0904 contrib: Add a script to clean up in regular intervals
This script should be run from cron. It compresses and deletes older
files.
2011-07-19 17:56:13 +02:00