add option TCPKeepAlive to borg ssh connection

This commit is contained in:
Tim Schubert 2022-04-16 08:22:39 +02:00
parent 790d62a58f
commit 7d4f36d831
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA

View file

@ -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";