dansan / spring-replay-site

Website to upload, comment and download replays from/for the SpringRTS engine
http://replays.springrts.com/
GNU General Public License v3.0
11 stars 1 forks source link

automatically delete old replays #116

Closed dansan closed 5 years ago

dansan commented 5 years ago

Replays older than 3 years should be automatically deleted.

→ Create a Django manage command and a daily cron job.

dansan commented 5 years ago

Django command is there now, but I just started the manual deletion of the first 99516 replays. So I haven't created the cron job yet, to prevent it from starting while this massive deletion is running. (The script make a break for 1 second after each deletion to not hammer the servers disks, so this will take until tomorrow.) TODO: create cron job

dansan commented 5 years ago

OK - old replays gone. I now created a daily cron job to run at 01:30 am.

silentwings commented 5 years ago

Thanks!