Filtre sur les fichiers à compresser

en partie Fix #1434
This commit is contained in:
Alan Garcia 2013-01-31 08:40:57 +00:00
parent 45d6358bc8
commit bf9887cbde
1 changed files with 1 additions and 1 deletions

View File

@ -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 '{}' \;