14 lines
348 B
Nix
14 lines
348 B
Nix
{ ... }: {
|
|
services.restic.backups.hetzner-vm = {
|
|
user = "root";
|
|
paths = [ "/var/lib/postgresql" "/var/lib/vault" ];
|
|
timerConfig = {
|
|
OnBootSec = "1m";
|
|
OnCalendar = "daily";
|
|
};
|
|
repository = "b2:Backups-HetznerVM:/";
|
|
passwordFile = "/secrets/restic-password";
|
|
environmentFile = "/secrets/restic-env";
|
|
};
|
|
}
|