From 64a73fe3b76b00dee788d4fbc7058a41144753e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 25 Jan 2024 14:57:30 +0200 Subject: [PATCH] zfsborg: change compression and chunker params works better for sqlite3 DBs. https://github.com/borgbackup/borg/issues/5877#issuecomment-1844793346 --- modules/base/zfsborg/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/base/zfsborg/default.nix b/modules/base/zfsborg/default.nix index 4e51813..6c96e74 100644 --- a/modules/base/zfsborg/default.nix +++ b/modules/base/zfsborg/default.nix @@ -75,7 +75,8 @@ in { passCommand = "cat ${config.mj.base.zfsborg.passwordPath}"; }; extraArgs = "--remote-path=borg1"; - compression = "auto,lzma"; + compression = "auto,zstd,10"; + extraCreateArgs = "--chunker-params buzhash,10,23,16,4095"; startAt = attrs.backup_at; preHook = mkPreHook fs.device i; prune.keep = {