mirror of
https://github.com/azlux/log2ram.git
synced 2023-10-10 13:37:24 +02:00
add olddir to persistant
This commit is contained in:
parent
26396f5b8c
commit
8d2d03517f
@ -13,7 +13,7 @@ systemctl enable log2ram
|
|||||||
|
|
||||||
# cron
|
# cron
|
||||||
install -m 755 log2ram.hourly /etc/cron.hourly/log2ram
|
install -m 755 log2ram.hourly /etc/cron.hourly/log2ram
|
||||||
install -m 644 log2ram.logrotate /etc/logrotate.d/log2ram
|
install -m 644 log2ram.logrotate /etc/logrotate.d/00_log2ram
|
||||||
|
|
||||||
# Remove a previous log2ram version
|
# Remove a previous log2ram version
|
||||||
rm -rf /var/log.hdd
|
rm -rf /var/log.hdd
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
# These settings will save the rotated logfiles to a seperate location.
|
||||||
|
# This file needs to be located in /etc/logrotate.d.
|
||||||
|
# The "00" prefix in the file name is required to ensure this file is
|
||||||
|
# loaded before any program specific logrotate settings are loaded as
|
||||||
|
# contents of /etc/logrotate.d are read in alphabetical order.
|
||||||
|
|
||||||
|
# The path & name for rotated logfiles folder.
|
||||||
|
olddir /var/log.old
|
||||||
|
|
||||||
|
# Create the path if it doesn't exist
|
||||||
|
createolddir 755 root root
|
||||||
|
|
||||||
|
# To allow the files to be "moved" (ie copied and original deleted)
|
||||||
|
# to another device/partition (eg out of RAM)
|
||||||
|
renamecopy
|
||||||
|
|
||||||
/var/log/log2ram.log
|
/var/log/log2ram.log
|
||||||
{
|
{
|
||||||
rotate 7
|
rotate 7
|
||||||
@ -7,4 +23,3 @@
|
|||||||
delaycompress
|
delaycompress
|
||||||
compress
|
compress
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user