8

Log filename as date for /home/{USER}/domains/{DOMAIN}/logs/xxx.{1-30}-Jun-2023.tar.gz


Avatar
Mean Charoenrat

Hello DA Team.

Keep domains logrotate filename as {day-month-year}.tar.gz
better than tar.gz.{number}

Example
/home/{USER}/domains/{DOMAIN}/logs/xxx.{1-30}-Jun-2023.tar.gz

Current filename pattern , All log files will be rename the filename every days.

# Because
*** Reduce the time for rsync backup (It greatly reduces the processing time)
*** Reduce the time on snapshort backup
*** Reduce snapshort storage size,
Easy to find , read and view the log content
- Easy to remove older log

Thank you.


A

Activity Newest / Oldest

Avatar

Alberto Delgado

I agree but with a "sortable" filenames. I mean: year-monthnumber-day-hour-minute