nixfiles/hosts/hetzner-vm/services/restic.nix

14 lines
338 B
Nix
Raw Normal View History

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