mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-22 02:17:26 +00:00
the logic in 4ed23f44e6
for taking backups more often was partly backward
This commit is contained in:
parent
a0bae5db5c
commit
23ecff04b8
@ -157,7 +157,7 @@ def should_force_full(config, env):
|
|||||||
# backup, as well as the age of the full backup.
|
# backup, as well as the age of the full backup.
|
||||||
if inc_size > .5*bak["size"]:
|
if inc_size > .5*bak["size"]:
|
||||||
return True
|
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 True
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user