From 23ecff04b8e18c5ee18c5572c26c4db4cfb30ba8 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Thu, 18 Feb 2016 07:50:59 -0500 Subject: [PATCH] the logic in 4ed23f44e6c7bb29cb08e035495a63db1195dfd6 for taking backups more often was partly backward --- management/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/backup.py b/management/backup.py index a5e85ce3..2bb499ef 100755 --- a/management/backup.py +++ b/management/backup.py @@ -157,7 +157,7 @@ def should_force_full(config, env): # backup, as well as the age of the full backup. if inc_size > .5*bak["size"]: return True - if dateutil.parser.parse(bak["date"]) + datetime.timedelta(days=config["min_age_in_days"]*10+1) > datetime.datetime.now(dateutil.tz.tzlocal()): + if dateutil.parser.parse(bak["date"]) + datetime.timedelta(days=config["min_age_in_days"]*10+1) < datetime.datetime.now(dateutil.tz.tzlocal()): return True return False else: