parent
45d6358bc8
commit
bf9887cbde
|
@ -18,5 +18,5 @@ done
|
|||
ALTERNC_LOGS="$ALTERNC_LOC/logs"
|
||||
|
||||
#Compress logs older than XX days
|
||||
nice -n 10 find "$ALTERNC_LOGS" -not -name '*.gz' -mtime +$DAYS -exec gzip '{}' \;
|
||||
nice -n 10 find "$ALTERNC_LOGS" -type f -name '*.log' -mtime +$DAYS -exec gzip '{}' \;
|
||||
|
||||
|
|
Loading…
Reference in New Issue