From 8b1503213b9dc55f2e938959d5996910d4533f19 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 15 Dec 2020 02:14:30 +0100 Subject: [PATCH] Fix zrepl configuration to ease load on eldiron --- modules/private/system/eldiron.nix | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/modules/private/system/eldiron.nix b/modules/private/system/eldiron.nix index f11afb6..102a517 100644 --- a/modules/private/system/eldiron.nix +++ b/modules/private/system/eldiron.nix @@ -168,32 +168,31 @@ snapshotting: type: periodic prefix: zrepl_ - interval: 15m - hooks: - - type: mysql-lock-tables - dsn: "${config.myEnv.zrepl_backup.mysql.user}:${config.myEnv.zrepl_backup.mysql.password}@tcp(localhost)/" - filesystems: - "zpool/root/var": true - - type: command - path: ${redis_dump} - err_is_fatal: false - filesystems: - "zpool/root/var": true + interval: 1h + #hooks: + # - type: mysql-lock-tables + # dsn: "${config.myEnv.zrepl_backup.mysql.user}:${config.myEnv.zrepl_backup.mysql.password}@tcp(localhost)/" + # filesystems: + # "zpool/root/var": true + # - type: command + # path: ${redis_dump} + # err_is_fatal: false + # filesystems: + # "zpool/root/var": true send: encrypted: true pruning: keep_sender: - - type: not_replicated - type: regex regex: "^manual_.*" - type: grid - grid: 1x1h(keep=all) | 24x1h | 7x1d | 4x7d | 6x30d + grid: 24x1h | 7x1d | 4x7d | 6x30d regex: "^zrepl_.*" keep_receiver: - type: regex regex: "^manual_.*" - type: grid - grid: 1x1h(keep=all) | 24x1h | 7x1d | 4x7d | 6x30d + grid: 6x4h | 7x1d | 4x7d | 6x30d regex: "^zrepl_.*" ''; }; -- 2.41.0