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:
parent
97ade6ad6c
commit
d39bd6d39f
@ -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)
|
||||||
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user