add vaultwarden

This commit is contained in:
Emelie 2021-09-22 15:31:20 +02:00
parent b14a690975
commit fcba9260bc
Signed by: emelie
GPG key ID: 49D33365A7E22D12
7 changed files with 75 additions and 6 deletions

View file

@ -30,5 +30,14 @@
extraOptions = [ "sftp.command='ssh restic@despondos.nao.sh -i ${config.secrets.files.ssh_private_key.file} -s sftp'" ];
passwordFile = builtins.toString config.secrets.files.restic_pass.file;
};
"vaultwarden" = {
paths = [ "/var/lib/vaultwarden" ];
repository = "sftp:restic@despondos.nao.sh:/etheria/backup/wind/vaultwarden";
initialize = true;
pruneOpts = [ "--keep-daily 7" "--keep-weekly 5" "--keep-monthly 12" "--keep-yearly 75" ];
timerConfig = { "OnCalendar" = "03:30"; };
extraOptions = [ "sftp.command='ssh restic@despondos.nao.sh -i ${config.secrets.files.ssh_private_key.file} -s sftp'" ];
passwordFile = builtins.toString config.secrets.files.restic_pass.file;
};
};
}