diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-12-15 02:14:30 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-12-15 02:14:30 +0100 |
commit | 8b1503213b9dc55f2e938959d5996910d4533f19 (patch) | |
tree | ed9d50650581169cb3027501acff32a3b45e0f35 | |
parent | b31b718f1b0259a70f5edf1226563f0422ce0bc8 (diff) | |
download | Nix-8b1503213b9dc55f2e938959d5996910d4533f19.tar.gz Nix-8b1503213b9dc55f2e938959d5996910d4533f19.tar.zst Nix-8b1503213b9dc55f2e938959d5996910d4533f19.zip |
Fix zrepl configuration to ease load on eldiron
-rw-r--r-- | modules/private/system/eldiron.nix | 27 |
1 files 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 @@ | |||
168 | snapshotting: | 168 | snapshotting: |
169 | type: periodic | 169 | type: periodic |
170 | prefix: zrepl_ | 170 | prefix: zrepl_ |
171 | interval: 15m | 171 | interval: 1h |
172 | hooks: | 172 | #hooks: |
173 | - type: mysql-lock-tables | 173 | # - type: mysql-lock-tables |
174 | dsn: "${config.myEnv.zrepl_backup.mysql.user}:${config.myEnv.zrepl_backup.mysql.password}@tcp(localhost)/" | 174 | # dsn: "${config.myEnv.zrepl_backup.mysql.user}:${config.myEnv.zrepl_backup.mysql.password}@tcp(localhost)/" |
175 | filesystems: | 175 | # filesystems: |
176 | "zpool/root/var": true | 176 | # "zpool/root/var": true |
177 | - type: command | 177 | # - type: command |
178 | path: ${redis_dump} | 178 | # path: ${redis_dump} |
179 | err_is_fatal: false | 179 | # err_is_fatal: false |
180 | filesystems: | 180 | # filesystems: |
181 | "zpool/root/var": true | 181 | # "zpool/root/var": true |
182 | send: | 182 | send: |
183 | encrypted: true | 183 | encrypted: true |
184 | pruning: | 184 | pruning: |
185 | keep_sender: | 185 | keep_sender: |
186 | - type: not_replicated | ||
187 | - type: regex | 186 | - type: regex |
188 | regex: "^manual_.*" | 187 | regex: "^manual_.*" |
189 | - type: grid | 188 | - type: grid |
190 | grid: 1x1h(keep=all) | 24x1h | 7x1d | 4x7d | 6x30d | 189 | grid: 24x1h | 7x1d | 4x7d | 6x30d |
191 | regex: "^zrepl_.*" | 190 | regex: "^zrepl_.*" |
192 | keep_receiver: | 191 | keep_receiver: |
193 | - type: regex | 192 | - type: regex |
194 | regex: "^manual_.*" | 193 | regex: "^manual_.*" |
195 | - type: grid | 194 | - type: grid |
196 | grid: 1x1h(keep=all) | 24x1h | 7x1d | 4x7d | 6x30d | 195 | grid: 6x4h | 7x1d | 4x7d | 6x30d |
197 | regex: "^zrepl_.*" | 196 | regex: "^zrepl_.*" |
198 | ''; | 197 | ''; |
199 | }; | 198 | }; |