From: Ismaƫl Bouya Date: Tue, 15 Dec 2020 01:14:30 +0000 (+0100) Subject: Fix zrepl configuration to ease load on eldiron X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=8b1503213b9dc55f2e938959d5996910d4533f19;p=perso%2FImmae%2FConfig%2FNix.git Fix zrepl configuration to ease load on eldiron --- 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_.*" ''; };