diff --git a/servatrice/scripts/File.History b/servatrice/scripts/File.History index 00e52f20..8ea21e2c 100644 Binary files a/servatrice/scripts/File.History and b/servatrice/scripts/File.History differ diff --git a/servatrice/scripts/maint_logs b/servatrice/scripts/maint_logs new file mode 100644 index 00000000..c218ff36 --- /dev/null +++ b/servatrice/scripts/maint_logs @@ -0,0 +1,4 @@ +#!/bin/bash +#SCHEDULE WITH CRONTAB AND ADJUST THE INTERVALS FOR THE NUMBER OF DAYS OF LOGS TO KEEP IN THE DATABASE +SQLCONFFILE="./mysql.cnf" #set this to the path that contains the mysql.cnf file +mysql --defaults-file=$SQLCONFFILE -h localhost -e 'delete from servatrice.cockatrice_log where log_time < DATE_SUB(now(), INTERVAL 10 DAY)'