mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-13 16:52:58 -07:00
Add scheduled database backups
This commit is contained in:
parent
3926d97fc6
commit
85b3f081bf
4 changed files with 31 additions and 29 deletions
|
@ -275,22 +275,6 @@ class API2:
|
|||
self.data = rows
|
||||
return rows
|
||||
|
||||
def backupdb(self, cleanup=False):
|
||||
""" Makes a backup of the db, removes all but the 3 last backups
|
||||
|
||||
Args:
|
||||
cleanup: (bool, optional)
|
||||
"""
|
||||
|
||||
data = database.make_backup(cleanup=cleanup)
|
||||
|
||||
if data:
|
||||
self.result_type = 'success'
|
||||
else:
|
||||
self.result_type = 'failed'
|
||||
|
||||
return data
|
||||
|
||||
def restart(self, **kwargs):
|
||||
""" Restarts plexpy """
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue