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
|
@ -31,6 +31,7 @@ import cherrypy
|
|||
import xmltodict
|
||||
|
||||
import plexpy
|
||||
import config
|
||||
import database
|
||||
import logger
|
||||
import plextv
|
||||
|
@ -295,6 +296,18 @@ class API2:
|
|||
self.data = rows
|
||||
return rows
|
||||
|
||||
def backup_config(self):
|
||||
""" Create a manual backup of the `config.ini` file. """
|
||||
|
||||
data = config.make_backup()
|
||||
|
||||
if data:
|
||||
self.result_type = 'success'
|
||||
else:
|
||||
self.result_type = 'failed'
|
||||
|
||||
return data
|
||||
|
||||
def backup_db(self):
|
||||
""" Create a manual backup of the `plexpy.db` file. """
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue