mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Fix removing old config backups
This commit is contained in:
parent
b3da08ce74
commit
1f7e8b4d9a
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@ import arrow
|
|||
import os
|
||||
import re
|
||||
import shutil
|
||||
import time
|
||||
|
||||
from configobj import ConfigObj
|
||||
|
||||
|
@ -610,7 +611,7 @@ def make_backup(cleanup=False, scheduler=False):
|
|||
|
||||
if cleanup:
|
||||
now = time.time()
|
||||
# Delete all scheduled backup files except from the last 5.
|
||||
# Delete all scheduled backup older than BACKUP_DAYS.
|
||||
for root, dirs, files in os.walk(backup_folder):
|
||||
ini_files = [os.path.join(root, f) for f in files if f.endswith('.sched.ini')]
|
||||
for file_ in ini_files:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue