Neu: Logrotate

This commit is contained in:
Alf
2025-07-11 10:55:30 +02:00
parent b0f799e2d6
commit 969e1b1089
3 changed files with 15 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
Archiv/
Backup/
log.txt
logrotate.status
*.gz

10
logrotate.cfg Normal file
View File

@ -0,0 +1,10 @@
/home/oberkoetter/Dokumente/Git/rettedpv/log.txt {
monthly
rotate 3
compress
missingok
notifempty
copytruncate
dateext
}

3
rotate.sh Normal file
View File

@ -0,0 +1,3 @@
cd /home/oberkoetter/Dokumente/Git/rettedpv
logrotate -s ./logrotate.status -f ./logrotate.cfg