From 34009bb9b877ada1e057095d111a98733dce30d0 Mon Sep 17 00:00:00 2001 From: echel0n Date: Thu, 5 Jun 2014 16:14:57 -0700 Subject: [PATCH] MainDB is backed up before being restored now to .r* versioned backup backups --- sickbeard/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sickbeard/helpers.py b/sickbeard/helpers.py index c7ae7ab8..33ca05b5 100644 --- a/sickbeard/helpers.py +++ b/sickbeard/helpers.py @@ -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