1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-17 23:05:11 -05:00

Added failed.db and cache.db

This commit is contained in:
Alexandre Beloin 2015-02-18 08:00:24 -05:00
parent 97ade6ad6c
commit d39bd6d39f
2 changed files with 3 additions and 1 deletions

View File

@ -449,7 +449,7 @@ class SickRage(object):
def restoreDB(self, srcDir, dstDir): def restoreDB(self, srcDir, dstDir):
try: try:
filesList = ['sickbeard.db', 'config.ini'] filesList = ['sickbeard.db', 'config.ini', 'failed.db', 'cache.db']
for filename in filesList: for filename in filesList:
srcFile = os.path.join(srcDir, filename) srcFile = os.path.join(srcDir, filename)

View File

@ -3597,6 +3597,8 @@ class ConfigBackupRestore(Config):
if backupDir: if backupDir:
source = [os.path.join(sickbeard.DATA_DIR, 'sickbeard.db'), sickbeard.CONFIG_FILE] source = [os.path.join(sickbeard.DATA_DIR, 'sickbeard.db'), sickbeard.CONFIG_FILE]
source.append(os.path.join(sickbeard.DATA_DIR, 'failed.db'))
source.append(os.path.join(sickbeard.DATA_DIR, 'cache.db'))
target = os.path.join(backupDir, 'sickrage-' + time.strftime('%Y%m%d%H%M%S') + '.zip') target = os.path.join(backupDir, 'sickrage-' + time.strftime('%Y%m%d%H%M%S') + '.zip')
for (path, dirs, files) in os.walk(sickbeard.CACHE_DIR, topdown=True): for (path, dirs, files) in os.walk(sickbeard.CACHE_DIR, topdown=True):