feat: move rcb cleanup to cron

This commit is contained in:
Silthus 2020-11-16 12:46:16 +01:00
parent 166bada6eb
commit dc42418bf7
3 changed files with 3 additions and 5 deletions

View File

@ -155,6 +155,4 @@ if retry 5 10s rcon-cli save-off; then
else
log ERROR "Unable to turn saving off. Is the server running?"
exit 1
fi
rcb cleanup
fi

View File

@ -1,2 +1,2 @@
10 2 * * * source /env.sh && /backup.sh > /proc/1/fd/1
10 2 * * * source /env.sh && /backup.sh && rcb cleanup > /proc/1/fd/1

View File

@ -2,7 +2,7 @@ import os
class Config:
default_backup_command = "source /env.sh && rcb backup > /proc/1/fd/1"
default_backup_command = "source /env.sh && /backup.sh && rcb cleanup > /proc/1/fd/1"
default_crontab_schedule = "0 2 * * *"
"""Bag for config values"""