Added message for when a backup is deleted
This commit is contained in:
@@ -91,7 +91,12 @@
|
||||
},
|
||||
{
|
||||
"type": "18",
|
||||
"name": "Backup",
|
||||
"name": "Backup created",
|
||||
"color": "#009966"
|
||||
},
|
||||
{
|
||||
"type": "20",
|
||||
"name": "Backup deleted",
|
||||
"color": "#009966"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user