1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-05 17:05:03 -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):
try:
filesList = ['sickbeard.db', 'config.ini']
filesList = ['sickbeard.db', 'config.ini', 'failed.db', 'cache.db']
for filename in filesList:
srcFile = os.path.join(srcDir, filename)

View File

@ -3597,6 +3597,8 @@ class ConfigBackupRestore(Config):
if backupDir:
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')
for (path, dirs, files) in os.walk(sickbeard.CACHE_DIR, topdown=True):