From: Sebastien GODARD Date: Wed, 21 May 2014 19:17:20 +0000 (+0200) Subject: Lower HISTORY limit to 25 for scripts to create multiple directories X-Git-Tag: v11.0.0~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f41438cb6c4e1fe9e265bcf39797a027b3493b16;p=sysstat Lower HISTORY limit to 25 for scripts to create multiple directories This patch lowers HISTORY value limit from 28 to 25. When HISTORY value is greater than 25 then sa1 script creates a month-by-month directory structure in /var/log/sa to save datafiles. This value guarantees that we will always have a full history and that no files will be overwritten unintentionally. Signed-off-by: Sebastien GODARD --- diff --git a/FAQ b/FAQ index 11e7d32..f569cbc 100644 --- a/FAQ +++ b/FAQ @@ -473,7 +473,7 @@ By default sar saves its data in the standard system activity data file, the /var/log/sa/sa
file, where
is the current day in the month. To prevent sar from overwriting any existing files, just set the variable HISTORY in /etc/sysconfig/sysstat to the number of days during which data -must be kept. When this variable has a value greater than 28, sa1 script +must be kept. When this variable has a value greater than 25, sa1 script uses a month-by-month directory structure; datafiles are named YYYYMM/saDD and the script maintains links to these datafiles to mimic the standard sar datafile structure. diff --git a/man/sysstat.in b/man/sysstat.in index 17357c4..a9e6455 100644 --- a/man/sysstat.in +++ b/man/sysstat.in @@ -1,4 +1,4 @@ -.TH SYSSTAT 5 "AUGUST 2013" Linux "Linux User's Manual" -*- nroff -*- +.TH SYSSTAT 5 "MAY 2014" Linux "Linux User's Manual" -*- nroff -*- .SH NAME sysstat \- sysstat configuration file. .SH DESCRIPTION @@ -18,7 +18,7 @@ days will be removed by the .BR sa2 (8) shell script. Data files and reports are normally saved in the @SA_DIR@ directory, -but if HISTORY is greater than 28, the scripts use a tree of directories under +but if HISTORY is greater than 25, the scripts use a tree of directories under @SA_DIR@. .TP diff --git a/sysstat.sysconfig.in b/sysstat.sysconfig.in index 25cc673..4d519cd 100644 --- a/sysstat.sysconfig.in +++ b/sysstat.sysconfig.in @@ -1,7 +1,7 @@ # @PACKAGE_NAME@-@PACKAGE_VERSION@ configuration file. # How long to keep log files (in days). -# If value is greater than 28, then log files are kept in +# If value is greater than 25, then log files are kept in # multiple directories, one for each month. HISTORY=@HISTORY@