mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-11-16 09:36:00 +01:00
the logic in 4ed23f44e6 for taking backups more often was partly backward
This commit is contained in:
1 parent
a0bae5db5c
commit
23ecff04b8
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user