mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
chore: prune restic repo before backup
This commit is contained in:
parent
69ef705820
commit
155f629159
3 changed files with 122 additions and 105 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, config, inputs, ... }:
|
||||
{ lib, pkgs, config, inputs, ... }:
|
||||
let
|
||||
secretsDirectory = builtins.toString inputs.nix-secrets;
|
||||
resticRepo = lib.swarselsystems.getSecret "${secretsDirectory}/restic/wintersRepo";
|
||||
|
|
@ -40,6 +40,9 @@ in
|
|||
"--keep-monthly 3"
|
||||
"--keep-yearly 100"
|
||||
];
|
||||
backupPrepareCommand = ''
|
||||
${pkgs.restic}/bin/restic prune
|
||||
'';
|
||||
repository = "${resticRepo}";
|
||||
initialize = true;
|
||||
timerConfig = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue