Add scheduled database backups

This commit is contained in:
JonnyWong16 2016-02-17 18:41:55 -08:00
parent 3926d97fc6
commit 85b3f081bf
4 changed files with 31 additions and 29 deletions

View file

@ -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 """