OPT_CPMVRMLOG enables fli4l to copy, move or delete files to other destinations (for example logfiles).
Disclaimer: The author gives neither a guarantee of functionality nor is he liable for any damage or the loss of data when using OPT_CPMVRMLOG.
Like always when using fli4l, the configuration is done by adjusting the file
fli4l-3.10.3/<config>/cpmvrmlog.txt to your own demands.
Default: OPT_CPMVRMLOG='no'
The setting 'no' deactivates OPT_CPMVRMLOG completely. There will be no changes made to the fli4l boot medium or the archive opt.img. OPT_CPMVRMLOG does not overwrite other parts of the fli4l installation.
To activate OPT_CPMVRMLOG set the variable OPT_CPMVRMLOG to 'yes'. If the package OPT_EASYCRON is not activated, a warning will be presented while building the new fli4l files because OPT_CPMVRMLOG depends on this package.
Default: CPMVRMLOG_VERBOSE='yes'
CPMVRMLOG_VERBOSE enables or disables additional messages (i.e. for debugging).
Default: CPMVRMLOG_COMPRESS='yes'
CPMVRMLOG_COMPRESS activates compression for the files being copied or moved.
Ignored on 'backup' operations.
Default: CPMVRMLOG_DEVRAM_CHECK='yes'
CPMVRMLOG_DEVRAM_CHECK enables the periodical check for free space in the
ramdisk or rootfs. Possible values are 'on' or 'off'.
Default: CPMVRMLOG_DEVRAM_FREE='250'
CPMVRMLOG_DEVRAM_FREE specifies the minimum value for free blocks in the ramdisk.
If less space is detected, the actions 'move' or 'remove' are processed.
Default: CPMVRMLOG_N='1'
CPMVRMLOG_N sets the number of action blocks following.
sets if copy, delete, move or backup should be used.
Files saved by the action 'backup' are restored during the next boot. CPMVRMLOG_COMPRESS
and CPMVRMLOG_MAXCOUNT are ignored.
specifies the name of the file or folder to be processed (incl. full path).
sets the destination path (only for 'copy', 'move' and 'backup').
If CPMVRMLOG_x_SOURCE is a directory name the destination
directory to where the source folder should be copied or moved has to be
specified here.
With CPMVRMLOG_x_CUSTOM an additional command can be defined after the
execution of the action. For example: it is absolutely necessary to do a
'killall -HUP syslogd' to tell the syslogd to create a new logfile after a
'delete' or 'move'. More than one command is possible by separating the commands
with ';'.
sets the maximum number of archive files. It will be ignored if
CPMVRMLOG_x_ACTION is set to 'backup' or 'delete'. Values greater than 0
add a numeric suffix to the files or folders being processed.
Suffixes on existing copies are increased, the oldest version will be deleted (if
CPMVRMLOG_x_MAXCOUNT is reached).
When copying or moving trees of folders, the suffix is only added to the files and
folders at the top level.
If the value of CPMVRMLOG_x_MAXCOUNT is set to '-1', the copied or moved
files get a timestamp added (yyyy-mm-dd-hh:mm). This is useful for unlimited regular
saving of logfiles. The administrator is responsible for monitoring the free space
on the destination device.
CPMVRMLOG_x_CRONTIME Sets the interval in which the action should be executed.
Use CRON syntax here (for details see package OPT_EASYCRON). The variable may be empty
on action 'backup'. In this case the files are saved during router shutdown.
The author's homepage: http://www.lan4me.de/
fli4l Newsgroups and the rules: http://www.fli4l.de/hilfe/newsgruppen/