diff --git a/backups/rsyncvolumes/plan.tpl.py b/backups/rsyncvolumes/plan.tpl.py index 3a5e34b..864f36d 100644 --- a/backups/rsyncvolumes/plan.tpl.py +++ b/backups/rsyncvolumes/plan.tpl.py @@ -50,14 +50,12 @@ def notkeep(fname): ds = ds[0] d = datetime.strptime(ds, '%Y-%m-%d') delta = dt - d - if delta.days > 365: + if delta.days > 180: return True - elif delta.days > 31: - # if (delta.days %% 30) != 0: + elif delta.days > 15: if (d.day != 1): return True elif delta.days > 2: - # if (delta.days %% 7) != 0: if (d.weekday() != 0) and (d.day != 1): return True else: