mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Added backup / restore scripts. Added table size script Updated existing scripts to use variable location for mysql.cnf file
4 lines
388 B
Bash
4 lines
388 B
Bash
#!/bin/bash
|
|
# SCHEDULE WITH CRONTAB BASED ON TIME PERIOD REPLAYS SHOULD BE SAVED UNTIL (EX: SCHEDULE ONCE A WEEK TO KEEP A WEEKS WORTH OF REPLAYS IN THE DB)
|
|
SQLCONFFILE="./mysql.cnf" #set this to the path that contains the mysql.cnf file
|
|
mysql --defaults-file=$SQLCONFFILE -h localhost -e 'truncate table servatrice.cockatrice_replays;truncate table servatrice.cockatrice_replays_access'
|