Add logrotate configuration
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
ac2021c458
commit
71bf5169de
2 changed files with 12 additions and 0 deletions
1
install
1
install
|
@ -151,6 +151,7 @@ declare -A COPY_ROOT_FILES
|
||||||
COPY_ROOT_FILES=(
|
COPY_ROOT_FILES=(
|
||||||
["/etc/docker/daemon.json"]="644"
|
["/etc/docker/daemon.json"]="644"
|
||||||
["/etc/gemrc"]="644"
|
["/etc/gemrc"]="644"
|
||||||
|
["/etc/logrotate.d/custom.conf"]="644"
|
||||||
["/etc/mkinitcpio.conf"]="644"
|
["/etc/mkinitcpio.conf"]="644"
|
||||||
["/etc/NetworkManager/conf.d/dns.conf"]="644"
|
["/etc/NetworkManager/conf.d/dns.conf"]="644"
|
||||||
["/etc/pacman.conf"]="644"
|
["/etc/pacman.conf"]="644"
|
||||||
|
|
11
system/etc/logrotate.d/custom.conf
Normal file
11
system/etc/logrotate.d/custom.conf
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
compresscmd zstd
|
||||||
|
uncompresscmd unzstd
|
||||||
|
compressoptions -9 --long -T0
|
||||||
|
compressext .zst
|
||||||
|
|
||||||
|
/home/severin/.local/log/*.log {
|
||||||
|
compress
|
||||||
|
daily
|
||||||
|
rotate 5
|
||||||
|
size 512K
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue