mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-20 16:43:43 +00:00
MainDB is backed up before being restored now to .r* versioned backup backups
This commit is contained in:
parent
fc7b28a8bc
commit
34009bb9b8
1 changed files with 2 additions and 2 deletions
|
@ -897,8 +897,8 @@ def restoreVersionedFile(backup_file, version):
|
|||
return False
|
||||
|
||||
try:
|
||||
logger.log(u"Trying to backup " + new_file + " to " + new_file + '.rtmp before restoring backup', logger.DEBUG)
|
||||
shutil.move(new_file, new_file + '.rtmp')
|
||||
logger.log(u"Trying to backup " + new_file + " to " + new_file + "." + "r" + str(version) + " before restoring backup", logger.DEBUG)
|
||||
shutil.move(new_file, new_file + '.' + 'r' + str(version))
|
||||
except Exception, e:
|
||||
logger.log(u"Error while trying to backup DB file " + restore_file + " before proceeding with restore: " + ex(e), logger.WARNING)
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue