1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-22 07:17:05 +00:00

the logic in 4ed23f44e6 for taking backups more often was partly backward

This commit is contained in:
Joshua Tauberer 2016-02-18 07:50:59 -05:00
parent a0bae5db5c
commit 23ecff04b8

View File

@ -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: