Reduce snapshot retention, backup limits

This commit is contained in:
asonix 2023-07-21 13:45:23 -05:00
parent 36ca280008
commit 1b17e15f26

View file

@ -25,8 +25,8 @@ let
};
primary = mountDir: subvolumes: {
snapshot_preserve_min = "2d";
snapshot_preserve = "2d 1w";
snapshot_preserve_min = "2h";
snapshot_preserve = "4h 1d 1w";
transaction_log = "/var/log/btrbk.log";
volume = { "${mountDir}" = btrbkPrimary { inherit subvolumes; }; };
};
@ -52,8 +52,8 @@ let
ssh_identity = config.sops.secrets.private_key.path;
ssh_user = "btrbk";
# stream_buffer = "512m";
target_preserve = "2h 2d 10w *m";
target_preserve_min = "24h";
target_preserve = " 2d 10w *m";
target_preserve_min = "1d";
transaction_log = "/var/log/btrbk.log";
volume = builtins.foldl'
(acc: