mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Add backup back to api
This commit is contained in:
parent
e38e98d9e7
commit
1c8428c3ea
2 changed files with 13 additions and 2 deletions
|
@ -1354,11 +1354,10 @@ class WebInterface(object):
|
|||
return serve_template(templatename="scheduler_table.html")
|
||||
|
||||
@cherrypy.expose
|
||||
@addtoapi()
|
||||
def backup_db(self):
|
||||
""" Creates a manual backup of the plexpy.db file """
|
||||
|
||||
result = database.make_backup(scheduler=False)
|
||||
result = database.make_backup()
|
||||
|
||||
if result:
|
||||
cherrypy.response.headers['Content-type'] = 'application/json'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue