In other words, only retain the activity and apache access log files for
2 years total.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
# Example: a compress value of "3" means compress files
# last modified more than 3 days ago.
COMPRESS_AGE=3
+# delete certain files that reach this age.
DELETE_AGE=365
+# delete all files this old regardless of file type
+DELETE_ALL_AGE=730
function usage {
cat <<USAGE
esac
done;
+# Delete all Evergreen log files that are older than DELETE_ALL_AGE,
+# regardless of the type of file.
+
+/usr/bin/find /var/log/evergreen -type f -mtime +$DELETE_ALL_AGE -delete
+
# Delete all Evergreen log files that are older than DELETE_AGE
# days, except for the Apache access log and Evergreen activity log.