mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 23:42:37 -07:00
Add Tautulli database corruption notification trigger
This commit is contained in:
parent
a4eda99a4a
commit
33d860384c
3 changed files with 27 additions and 0 deletions
|
@ -120,6 +120,7 @@ def make_backup(cleanup=False, scheduler=False):
|
|||
corrupt = ''
|
||||
if not integrity:
|
||||
corrupt = '.corrupt'
|
||||
plexpy.NOTIFY_QUEUE.put({'notify_action': 'on_plexpydbcorrupt'})
|
||||
|
||||
if scheduler:
|
||||
backup_file = 'tautulli.backup-{}{}.sched.db'.format(arrow.now().format('YYYYMMDDHHmmss'), corrupt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue