LR_ARCHIVE_LOG.IN(1)

NAME
lr_archive_log - internal script that handles archiving log and report files

SYNOPSIS
lr_archive_log [-l logfile] [-l logfile] ... [-x xmlreportfile] [-x xmlreportfile] ...

DESCRIPTION
lr_archive_log is an internal script used by lr_log2report(1) and lr_log2mail(1). It should be called at the end of the job to archive (or not) the generated XML report and log file.

This script will keep, remove or archive the log and XML report files depending on the value of LR_KEEP and LR_ARCHIVE.

When LR_ARCHIVE is set, a compressed copy of the log and XML report file will be stored in Lire's archive. The XML report will be saved under LR_ARCHIVE_DIR/report/xml/LR_SUPERSERVICE/LR_SERVICE/LR_EXTID and the report will be saved under LR_ARCHIVE_DIR/log/raw/LR_SUPERSERVICE/LR_SERVICE/LR_EXTID. The filenames will be LR_TIME.gz and LR_TIME.xml.gz respectively.

The log and XML report files will be removed unless LR_KEEP is set.

ENVIRONMENT
The following environment variables must set and exported prior to calling this script: LR_SERVICE and LR_ID. Also, the defaults file should have been sourced.

VERSION
This manpage: $Id: lr_archive_log.in,v 1.9 2002/08/18 19:10:04 flacoste Exp $

COPYRIGHT
Copyright (C) 2002 Stichting LogReport Foundation LogReport@LogReport.org

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html or write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.

AUTHOR
Francis J. Lacoste <flacoste@logreport.org>