mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Added failed.db and cache.db
This commit is contained in:
parent
97ade6ad6c
commit
d39bd6d39f
@ -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)
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user