summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-10-12 18:48:37 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-10-12 18:48:37 +0000
commit407d4eb9fd53425e845a62285333a4cd36b0c792 (patch)
treee9babd6b419d5382d66f8e40d1e555585a31c9cc
parent801a6c609e21d6e50404c3a2bf54b5d1eb538bed (diff)
downloadrdiff-backup-407d4eb9fd53425e845a62285333a4cd36b0c792.tar.gz
Switched order of regress check
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@470 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/rdiff_backup/Main.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/rdiff-backup/rdiff_backup/Main.py b/rdiff-backup/rdiff_backup/Main.py
index 8f3d5cd..26a4151 100644
--- a/rdiff-backup/rdiff_backup/Main.py
+++ b/rdiff-backup/rdiff_backup/Main.py
@@ -348,15 +348,11 @@ def backup_get_mirrortime():
def backup_final_init(rpout):
"""Open the backup log and the error log, create increments dir"""
global prevtime
- prevtime = backup_get_mirrortime()
- need_check = checkdest_need_check(rpout)
if Log.verbosity > 0:
Log.open_logfile(Globals.rbdir.append("backup.log"))
+ checkdest_if_necessary(rpout)
+ prevtime = backup_get_mirrortime()
ErrorLog.open(Time.curtimestr, compress = Globals.compression)
- if need_check:
- Log("Previous backup seems to have failed, regressing "
- "destination now.", 2)
- rpout.conn.regress.Regress(rpout)
inc_base = Globals.rbdir.append_path("increments")
if not inc_base.lstat(): inc_base.mkdir()