mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Backup config file
This commit is contained in:
parent
b0eb98c667
commit
6aa786698e
9 changed files with 127 additions and 64 deletions
|
@ -30,6 +30,7 @@ from mako import exceptions
|
|||
|
||||
import plexpy
|
||||
import common
|
||||
import config
|
||||
import database
|
||||
import datafactory
|
||||
import graphs
|
||||
|
@ -2428,6 +2429,19 @@ class WebInterface(object):
|
|||
|
||||
return {'result': 'success', 'message': 'Settings saved.'}
|
||||
|
||||
@cherrypy.expose
|
||||
@cherrypy.tools.json_out()
|
||||
@requireAuth(member_of("admin"))
|
||||
def backup_config(self):
|
||||
""" Creates a manual backup of the plexpy.db file """
|
||||
|
||||
result = config.make_backup()
|
||||
|
||||
if result:
|
||||
return {'result': 'success', 'message': 'Config backup successful.'}
|
||||
else:
|
||||
return {'result': 'error', 'message': 'Config backup failed.'}
|
||||
|
||||
@cherrypy.expose
|
||||
@requireAuth(member_of("admin"))
|
||||
def get_scheduler_table(self, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue