From fe886a6439d0a5940258cd5ee743ceec01674230 Mon Sep 17 00:00:00 2001 From: cstegm Date: Fri, 29 Mar 2019 18:24:17 +0100 Subject: [PATCH] Update 030_preparing_a_new_repo.rst Helps users having this issue: https://github.com/restic/restic/issues/2216 --- doc/030_preparing_a_new_repo.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/030_preparing_a_new_repo.rst b/doc/030_preparing_a_new_repo.rst index bbffd475d..327a23e76 100644 --- a/doc/030_preparing_a_new_repo.rst +++ b/doc/030_preparing_a_new_repo.rst @@ -122,7 +122,17 @@ Last, if you'd like to use an entirely different program to create the SFTP connection, you can specify the command to be run with the option ``-o sftp.command="foobar"``. +.. note:: Please be aware that sftp servers close connections when no data is + received by the client. This can happen when restic is processing huge + amounts of unchanged data. To avoid this issue add the following lines + to the client’s .ssh/config file: +:: + + ServerAliveInterval 60 + ServerAliveCountMax 240 + + REST Server ***********