spring / upq

extracts metadata of game and map files of the spring engine
https://springfiles.springrts.com/
GNU General Public License v3.0
2 stars 5 forks source link

springfiles map pruning / cleanup script #101

Open springraaar opened 5 months ago

springraaar commented 5 months ago

springrts.com ran out of disk space yesterday. There seems to be some recurring process that can take up a significant amount of GB and create this issue if free space is < 10 GB

In any case, the springfiles maps directory seems to be the biggest one and had about 92 GB at the time.

I manually removed about 7 GB worth of old versions of maps which have newer ones and also have relatively big files.

Then I made this script to cleanup the DB records, images,etc as if they'd been removed through the web app verifyMapsCleanup.zip

might be worth adding it on a PR

springraaar commented 5 months ago

disk filled up again! /dev/mapper/spring1--vg-root 365494272 362827904 64 100% /

mysql stopped working springfiles@spring1:~/upq/files/games$ mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (111)

apparently it's not user-uploaded content that's doing this since no game or map has been uploaded in the past 12h and the remaining free ~5 GB are gone.

springraaar commented 4 months ago

it cleared up over the past hour /dev/mapper/spring1--vg-root 365494272 351262128 10891120 97% /