backup vaultwarden
This commit is contained in:
parent
0ecd143b89
commit
f05869f2bb
|
@ -11,6 +11,24 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
services.restic.backups = {
|
||||||
|
"vaultwarden" = {
|
||||||
|
passwordFile = "/etc/nixos/.secrets/restic_pw";
|
||||||
|
repository = "sftp:Glenn@nas:/home/back/vaultwarden/restic";
|
||||||
|
initialize = true;
|
||||||
|
paths = [
|
||||||
|
"/var/lib/bitwarden_rs"
|
||||||
|
];
|
||||||
|
user = "sondell";
|
||||||
|
timerConfig.OnCalendar = "02:05";
|
||||||
|
pruneOpts = [
|
||||||
|
"--keep-daily 10"
|
||||||
|
"--keep-weekly 5"
|
||||||
|
"--keep-monthly 12"
|
||||||
|
"--keep-yearly 75"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
services.nginx.virtualHosts.${domain} = {
|
services.nginx.virtualHosts.${domain} = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
Loading…
Reference in a new issue