nixfiles/hosts/hetzner-vm/services/restic.nix
ChaotiCryptidz bcaa56ee97 format nix
2021-12-29 13:17:01 +00:00

14 lines
338 B
Nix

{ ... }: {
services.restic.backups.hetzner-vm = {
user = "root";
paths = [ "/var/lib/postgresql" "/var/lib/vault" ];
timerConfig = {
OnBootSec = "1m";
OnCalendar = "daily";
};
repository = "/root/backup";
passwordFile = "/secrets/restic-password";
environmentFile = "/secrets/restic-env";
};
}