File: cleanup.pod

package info (click to toggle)
remstats 1.00a4-8woody1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,576 kB
  • ctags: 1,020
  • sloc: perl: 11,706; ansic: 2,776; makefile: 944; sh: 869
file content (27 lines) | stat: -rw-r--r-- 568 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
=cut

TITLE=cleanup
DESCRIPTION=cleanup removes stale, old files
KEYWORDS=cleanup
DOCTOP=index
DOCPREV=availability-report
DOCNEXT=convert-config-links

=pod

=head1 cleanup - removes stale, old files

=head2 Usage:

=exec ../cleanup -h 2>&1

=head2 Description:

It removes old collector data from @@DATADIR@@/LAST, old logs from 
@@DATADIR@@/LOGS, old traceroute data from @@DATADIR@@/TRACEROUTES
and old images from all the host subdirectories of @@HTMLDIR@@.

Run it out of cron every now and then, say once a day, with a line
like:

	0 2 * * * @@BINDIR@@/cleanup