aboutsummaryrefslogtreecommitdiffstats
path: root/arch-system/borgbackup
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2019-04-21 19:38:23 +0200
committerTharre <tharre3@gmail.com>2019-04-21 19:44:51 +0200
commit3d3996edaf169424babc8b9da6bde6ea1051d3db (patch)
tree48865eeeafc770b9053fce9f652f2252979da580 /arch-system/borgbackup
parent090f2d964d99d78700415a0084e2170aaf148a79 (diff)
downloadpkgbuilds-3d3996edaf169424babc8b9da6bde6ea1051d3db.tar.gz
pkgbuilds-3d3996edaf169424babc8b9da6bde6ea1051d3db.tar.xz
pkgbuilds-3d3996edaf169424babc8b9da6bde6ea1051d3db.zip
arch-system: borgbackup: use proper ssh timeout
ConnectTimeout merely specifies the TCP timeout, what we really want is ServerAliceInterval, which makes the client send a null packet every X seconds.
Diffstat (limited to 'arch-system/borgbackup')
-rwxr-xr-xarch-system/borgbackup2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch-system/borgbackup b/arch-system/borgbackup
index 9368452..8467b16 100755
--- a/arch-system/borgbackup
+++ b/arch-system/borgbackup
@@ -6,7 +6,7 @@ BORG_HOST="12390@ch-s012.rsync.net"
export BORG_REPO="$BORG_HOST:repos/$(hostname)"
export BORG_PASSPHRASE="$(< ~/.borg_secret)"
export BORG_RSH="ssh -o IdentitiesOnly=yes -o ConnectionAttempts=20 \
- -o ConnectTimeout=30 -i ~/.ssh/borg_key"
+ -o ServerAliveInterval=30 -i ~/.ssh/borg_key"
export LC_COLLATE=C
SNAPSHOT_TARGET="/.snapshots/home-$(date "+%Y-%m-%dT%H:%M:%S")"