X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fprivate%2Fsystem%2Feldiron.nix;fp=modules%2Fprivate%2Fsystem%2Feldiron.nix;h=102a517007594be2177a9ee94f45522e300c17c4;hp=f11afb675e2d5f5fd27e70d9aa5332be038821f0;hb=8b1503213b9dc55f2e938959d5996910d4533f19;hpb=b31b718f1b0259a70f5edf1226563f0422ce0bc8 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_.*" ''; };