OPT_CPMVRMLOG adds a function to fli4l to copy, move or delete 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.
The configuration is made, as of all fli4l packages, by adjusting the file path/fli4l-3.6.1/<config>/cpmvrmlog.txt to meet the own demands.
Default: OPT_CPMVRMLOG='no'
The setting 'no' deactivates OPT_CPMVRMLOG fully. There will be no changes
on the fli4l bootdisk or the archive opt.img made.
Further OPT_CPMVRMLOG basically does not overwrite other parts of the fli4l installation.
To activate OPT_CPMVRMLOG set the variable OPT_CPMVRMLOG to 'yes'. If the needed packet OPT_EASYCRON isn't activated, a warning will be presented during the build of the new fli4l files.
Default: CPMVRMLOG_VERBOSE='yes'
CPMVRMLOG_VERBOSE Enable or disable additional messages.
Default: CPMVRMLOG_COMPRESS='yes'
CPMVRMLOG_COMPRESS activates compression of the files being copied or moved.
Ignored on 'backup' operations.
Default: CPMVRMLOG_DEVRAM_CHECK='yes'
CPMVRMLOG_DEVRAM_CHECK Switches the routinely check of free space in the
ramdisk or rootfs on or off.
Default: CPMVRMLOG_DEVRAM_FREE='250'
CPMVRMLOG_DEVRAM_FREE Sets the minimum value for free blocks in the ramdisk.
If there is less space free, the actions 'move' or 'remove' are made.
Default: CPMVRMLOG_N='1'
CPMVRMLOG_N Sets the number of active folowing action parts.
CPMVRMLOG_x_ACTION Sets if a copy, delete, move or backup should be made.
The files, the action 'backup' saves, are restored during boot. CPMVRMLOG_COMPRESS
and CPMVRMLOG_MAXCOUNT are ignored.
CPMVRMLOG_x_SOURCE The name incl. full path of the file or folder.
CPMVRMLOG_x_DESTINATION Sets the destination path (only for 'copy', 'move'
and 'backup'). If CPMVRMLOG_x_SOURCE is a foldername, the destination foldername
in which the source folder is to be copied or moved.
With CPMVRMLOG_x_CUSTOM a 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 ';'.
CPMVRMLOG_x_MAXCOUNT Sets the maximum number of archive files. Ignored when
CPMVRMLOG_x_ACTION is set to 'backup' or 'delete'. Values greater than 0
adds a '.1' suffix to the copied or moved (or compressed) files or folders.
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
file gets a timestamp of yyyy-mm-dd-hh:mm added. This is usefull to save unlimited and
regularily. The administrator is responsible for monitoring the free space on the destination
device.
CPMVRMLOG_x_CRONTIME Sets by CRON syntax (look at packet EASYCRON)
the interval, when the action has to be executed. May be empty on action 'backup' -
then the files are saved during shutdown of the router.
Homepage of the author: http://www.lan4me.de/
fli4l Newsgroups and the rules: http://www.fli4l.de/hilfe/newsgruppen/