Added message for when a backup is deleted

This commit is contained in:
Lukasdotcom
2022-01-19 18:49:24 -05:00
parent 838d67f8a6
commit a98cca0d4a
2 changed files with 7 additions and 1 deletions

View File

@@ -207,6 +207,7 @@ try:
try:
if int(x[:x.find("or")]) < time.time() - configuration["database"]["backupLength"]:
os.remove(f"{backupLocation}/{x}")
writeLog(f"Removed old backup due to age, named {x}", 20)
except:
os.remove(f"{backupLocation}/{x}")
files = glob.glob(f"{backupLocation}/*.sql")