archive_radacct - Remove a months worth of data out of the `radacct` table and archive it into a `radacct-YYYY-MM` table.
# specify a specific month to process archive_radacct --month|-m 2009-06 # display help archive_radacct --help|-h # display the manual page archive_radacct --man|-M
Specify the month in which you want to work on in the form YYYY-MM. If the month parameter is not supplied, we will work on the month that was existent three months ago.
archive_radacct is a utility script for the FreeRADIUS::Database module.
It archives data from the `radacct' table into a newly created table in the database. If the 'delete_after_archive' directive in the freeradius_database.conf file is enabled, we will delete from the radacct table after the archive is complete.
Steve Bertrand, <steveb@cpan.org>
Copyright (C) 2012 by Steve Bertrand
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.9 or, at your option, any later version of Perl 5 you may have available.
To install FreeRADIUS::Database, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FreeRADIUS::Database
CPAN shell
perl -MCPAN -e shell install FreeRADIUS::Database
For more information on module installation, please visit the detailed CPAN module installation guide.