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: