diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/zfssnap/default.nix | 2 | ||||
-rw-r--r-- | modules/zfssnap/zfssnap.py | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/modules/zfssnap/default.nix b/modules/zfssnap/default.nix index 451097b4..d1080e8a 100644 --- a/modules/zfssnap/default.nix +++ b/modules/zfssnap/default.nix | |||
@@ -49,6 +49,8 @@ in { | |||
49 | "4h" = "24"; | 49 | "4h" = "24"; |
50 | "12h" = "12"; | 50 | "12h" = "12"; |
51 | daily = "62"; | 51 | daily = "62"; |
52 | halfweekly = "32"; | ||
53 | weekly = "24"; | ||
52 | monthly = "-1"; | 54 | monthly = "-1"; |
53 | }; | 55 | }; |
54 | }; | 56 | }; |
diff --git a/modules/zfssnap/zfssnap.py b/modules/zfssnap/zfssnap.py index 857244f1..6d9bc6de 100644 --- a/modules/zfssnap/zfssnap.py +++ b/modules/zfssnap/zfssnap.py | |||
@@ -120,6 +120,7 @@ def prune(config, dry_run, keep_newest): | |||
120 | ("4h", lambda t: (t.strftime('%Y-%m-%d'), floor(t.hour / 4) * 4)), | 120 | ("4h", lambda t: (t.strftime('%Y-%m-%d'), floor(t.hour / 4) * 4)), |
121 | ("12h", lambda t: (t.strftime('%Y-%m-%d'), floor(t.hour / 12) * 12)), | 121 | ("12h", lambda t: (t.strftime('%Y-%m-%d'), floor(t.hour / 12) * 12)), |
122 | ("daily", lambda t: t.strftime('%Y-%m-%d')), | 122 | ("daily", lambda t: t.strftime('%Y-%m-%d')), |
123 | ("halfweekly", lambda t: (t.strftime('%G-%V'), floor(int(t.strftime('%u')) / 4) * 4)), | ||
123 | ("weekly", lambda t: t.strftime('%G-%V')), | 124 | ("weekly", lambda t: t.strftime('%G-%V')), |
124 | ("monthly", lambda t: t.strftime('%Y-%m')), | 125 | ("monthly", lambda t: t.strftime('%Y-%m')), |
125 | ("yearly", lambda t: t.strftime('%Y')), | 126 | ("yearly", lambda t: t.strftime('%Y')), |