From 7d4f36d831ad15ba615505e61e694706aa06d124 Mon Sep 17 00:00:00 2001 From: dadada Date: Sat, 16 Apr 2022 08:22:39 +0200 Subject: [PATCH] add option TCPKeepAlive to borg ssh connection --- nixos/modules/backup.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/backup.nix b/nixos/modules/backup.nix index 3ac7fec..c5855e0 100644 --- a/nixos/modules/backup.nix +++ b/nixos/modules/backup.nix @@ -66,7 +66,7 @@ in repo = "borg@backup0.dadada.li:/mnt/storage/backup/${config.networking.hostName}"; doInit = false; environment = { - BORG_RSH = "ssh -i /var/lib/borgbackup/bs/id_ed25519 -o 'StrictHostKeyChecking accept-new'"; + BORG_RSH = "ssh -i /var/lib/borgbackup/bs/id_ed25519 -o 'StrictHostKeyChecking accept-new' -o 'TCPKeepAlive=yes'"; }; encryption = { mode = "repokey";